[site/lib]: create file to store regex constants

This commit is contained in:
khalilcodes 2022-06-01 17:58:48 +03:00
parent a9b303d029
commit ed85806958
1 changed files with 2 additions and 0 deletions

2
site/lib/constants.js Normal file
View File

@ -0,0 +1,2 @@
export const YOUTUBE_REGEX =
/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;