Skip to content
Snippets Groups Projects
Commit a4a032bb authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: update linkedin regex to allow compagny pages

parent a8f5bbc6
No related branches found
No related tags found
2 merge requests!178release V1.10.0,!154Dev
......@@ -13,7 +13,7 @@ export class CustomRegExp {
*/
public static readonly PHONE: RegExp = /^(?:(?:\+|00)|0)\s*[1-9](?:[\s.-]*\d{2}){4}$/; //NOSONAR
public static readonly WEBSITE: RegExp = /^(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/in/.{1,})';
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 INSTAGRAM: string = '(instagram.com/.{1,})';
......
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