social-links
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -9,7 +9,7 @@ "use strict"; | ||
{ | ||
match: '(https?://)?(www.)?linkedin.com/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_DESKTOP, | ||
match: '(https?://)?([a-z]{2,3}.)?linkedin.com/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_DESKTOP, | ||
pattern: 'https://linkedin.com/in/{PROFILE_ID}' | ||
}, | ||
{ | ||
match: '(https?://)?(www.)?linkedin.com/mwlite/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_MOBILE, | ||
match: '(https?://)?([a-z]{2,3}.)?linkedin.com/mwlite/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_MOBILE, | ||
pattern: 'https://linkedin.com/mwlite/in/{PROFILE_ID}' | ||
@@ -16,0 +16,0 @@ }, |
@@ -38,3 +38,10 @@ "use strict"; | ||
}); | ||
it('should accept localized urls', function () { | ||
var profile = 'linkedin'; | ||
expect(sl.isValid(profile, 'https://de.linkedin.com/in/anton-begehr/')).toBeTruthy(); | ||
expect(sl.isValid(profile, 'https://de.linkedin.com/mwlite/in/anton-begehr/')).toBeTruthy(); | ||
expect(sl.sanitize(profile, 'https://de.linkedin.com/in/anton-begehr/')).toBe('https://linkedin.com/in/anton-begehr'); | ||
expect(sl.sanitize(profile, 'https://de.linkedin.com/mwlite/in/anton-begehr/', main_1.TYPE_MOBILE)).toBe('https://linkedin.com/mwlite/in/anton-begehr'); | ||
}); | ||
}); | ||
//# sourceMappingURL=linkedin.spec.js.map |
{ | ||
"name": "social-links", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Validate & sanitize social links", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
174017
2029