Skip to content
Snippets Groups Projects
Commit b33ae2fb authored by Stefan Cruz's avatar Stefan Cruz
Browse files

fix: regular expression for channel to allow "." and "_". regular expression...

fix: regular expression for channel to allow "." and "_". regular expression for playlists to allow query param to identify private playlists
parent 38ff9b94
No related branches found
No related tags found
No related merge requests found
...@@ -27,11 +27,12 @@ export const REGEX_VIDEO_URL_1 = /^https:\/\/dai\.ly\/[a-zA-Z0-9]+$/i; ...@@ -27,11 +27,12 @@ export const REGEX_VIDEO_URL_1 = /^https:\/\/dai\.ly\/[a-zA-Z0-9]+$/i;
export const REGEX_VIDEO_URL_EMBED = export const REGEX_VIDEO_URL_EMBED =
/^https:\/\/(?:www\.)?dailymotion\.com\/embed\/video\/[a-zA-Z0-9]+(\?.*)?$/i; /^https:\/\/(?:www\.)?dailymotion\.com\/embed\/video\/[a-zA-Z0-9]+(\?.*)?$/i;
export const REGEX_VIDEO_CHANNEL_URL = export const REGEX_VIDEO_CHANNEL_URL =
/^https:\/\/(?:www\.)?dailymotion\.com\/[a-zA-Z0-9-]+$/i; /^https:\/\/(?:www\.)?dailymotion\.com\/[a-z0-9][a-z0-9._-]{2,26}(?:\?[a-zA-Z0-9=&._-]*)?$/i;
export const REGEX_VIDEO_PLAYLIST_URL = export const REGEX_VIDEO_PLAYLIST_URL =
/^https:\/\/(?:www\.)?dailymotion\.com\/playlist\/[a-zA-Z0-9]+(?:\?[a-zA-Z0-9_\-=&%]*)?$/i; /^https:\/\/(?:www\.)?dailymotion\.com\/playlist\/[a-zA-Z0-9]+(?:[?&][a-zA-Z0-9_\-=&%]*)?$/i;
export const REGEX_INITIAL_DATA_API_AUTH_1 = export const REGEX_INITIAL_DATA_API_AUTH_1 =
/(?<=window\.__LOADABLE_LOADED_CHUNKS__=.*)\b[a-f0-9]{20}\b|\b[a-f0-9]{40}\b/g; /(?<=window\.__LOADABLE_LOADED_CHUNKS__=.*)\b[a-f0-9]{20}\b|\b[a-f0-9]{40}\b/g;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment