Skip to content
Snippets Groups Projects
Commit f319980e authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

feat: update twitter regex to accept x.com

parent a59a2916
No related branches found
No related tags found
2 merge requests!846V3.1.0 (sans impression),!840feat: update Twitter regex
......@@ -27,7 +27,7 @@ export class CustomRegExp {
/^(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,}|[a-zA-Z0-9]+\.[^\s]{2,})/; // NOSONAR
public static readonly LINKEDIN: string = '(linkedin.com/.{1,})';
public static readonly FACEBOOK: string = '(facebook.com/.{1,})';
public static readonly TWITTER: string = '(twitter.com/.{1,})';
public static readonly TWITTER: string = '(twitter.com|x.com)/.{1,}';
public static readonly INSTAGRAM: string = '(instagram.com/.{1,})';
public static readonly NO_NULL_NUMBER: string = '[1-9]{1}[0-9]*?';
public static readonly NO_NEGATIVE_NUMBER: RegExp = /^\d+$/;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment