[site/lib]: create file to store regex constants
This commit is contained in:
parent
a9b303d029
commit
ed85806958
|
|
@ -0,0 +1,2 @@
|
|||
export const YOUTUBE_REGEX =
|
||||
/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
|
||||
Loading…
Reference in New Issue