Skip to content

Commit

Permalink
fix: twitch regex (with www) (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen authored Jul 6, 2023
2 parents 87bf5ba + d2e5d5f commit 690bddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/share/src/formy/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const TWITTER = /^https:\/\/twitter\.com\/.+/;
export const FACEBOOK = /^https:\/\/www\.facebook\.com\/.+/;
export const INSTAGRAM = /^https:\/\/www\.instagram\.com\/.+/;
export const YOUTUBE = /^https:\/\/www\.youtube\.com\/.+/;
export const TWITCH = /^https:\/\/twitch\.tv\/.+/;
export const TWITCH = /^https:\/\/www\.twitch\.tv\/.+/;
export const TIKTOK = /^https:\/\/www\.tiktok\.com\/.+/;
export const GOOGLE_PLAY = /^https:\/\/play\.google\.com\/.+/;
export const APP_STORE = /^https:\/\/apps\.apple\.com\/.+/;
Expand Down
2 changes: 1 addition & 1 deletion rs/packages/validate/src/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod patterns {
pub static FACEBOOK: Lazy<Regex> = lazy_regex!(r#"^https://www\.facebook\.com/.+"#);
pub static INSTAGRAM: Lazy<Regex> = lazy_regex!(r#"^https://www\.instagram\.com/.+"#);
pub static YOUTUBE: Lazy<Regex> = lazy_regex!(r#"^https://www\.youtube\.com/.+"#);
pub static TWITCH: Lazy<Regex> = lazy_regex!(r#"^https://twitch\.tv/.+"#);
pub static TWITCH: Lazy<Regex> = lazy_regex!(r#"^https://www\.twitch\.tv/.+"#);
pub static TIKTOK: Lazy<Regex> = lazy_regex!(r#"https://www\.tiktok\.com/.+"#);
pub static GOOGLE_PLAY: Lazy<Regex> = lazy_regex!(r#"^https://play\.google\.com/.+"#);
pub static APP_STORE: Lazy<Regex> = lazy_regex!(r#"^https://apps\.apple\.com/.+"#);
Expand Down

0 comments on commit 690bddb

Please sign in to comment.