[site][xs]: create file to store regex constants
This commit is contained in:
parent
3b1671f882
commit
3b1e0350d6
|
|
@ -0,0 +1,3 @@
|
|||
export const YOUTUBE_REGEX = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
|
||||
|
||||
export const TWITTER_REGEX = /^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)/;
|
||||
Loading…
Reference in New Issue