diff --git a/site/lib/constants.js b/site/lib/constants.js new file mode 100644 index 0000000..2cceaed --- /dev/null +++ b/site/lib/constants.js @@ -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+)/; \ No newline at end of file