social-links
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -175,3 +175,39 @@ "use strict"; | ||
}, | ||
{ name: 'github', | ||
matches: [ | ||
{ | ||
match: '(https?://)?(www.)?github.com/({PROFILE_ID})/?', group: 3, type: exports.TYPE_DESKTOP, | ||
pattern: 'https://github.com/{PROFILE_ID}' | ||
}, | ||
{ match: '({PROFILE_ID})', group: 1 }, | ||
] | ||
}, | ||
{ name: 'medium', | ||
matches: [ | ||
{ | ||
match: '(https?://)?(www.)?medium.com/@({PROFILE_ID})/?', group: 3, type: exports.TYPE_DESKTOP, | ||
pattern: 'https://medium.com/@{PROFILE_ID}' | ||
}, | ||
{ match: '({PROFILE_ID})', group: 1 }, | ||
] | ||
}, | ||
{ name: 'dribbble', | ||
matches: [ | ||
{ | ||
match: '(https?://)?(www.)?dribbble.com/({PROFILE_ID})/?', group: 3, type: exports.TYPE_DESKTOP, | ||
pattern: 'https://dribbble.com/{PROFILE_ID}' | ||
}, | ||
{ match: '({PROFILE_ID})', group: 1 }, | ||
] | ||
}, | ||
{ name: 'behance', | ||
matches: [ | ||
{ | ||
match: '(https?://)?(www.)?behance.net/({PROFILE_ID})/?', group: 3, type: exports.TYPE_DESKTOP, | ||
pattern: 'https://behance.net/{PROFILE_ID}' | ||
}, | ||
{ match: '({PROFILE_ID})', group: 1 }, | ||
] | ||
}, | ||
]; | ||
//# sourceMappingURL=main.js.map |
@@ -189,4 +189,28 @@ "use strict"; | ||
}); | ||
it('should github', function () { | ||
var profile = 'github'; | ||
var profileId = 'gkucmierz'; | ||
var desktop = "https://github.com/" + profileId; | ||
testProfileDesktop(profile, profileId, desktop); | ||
}); | ||
it('should medium', function () { | ||
var profile = 'medium'; | ||
var profileId = 'grzegorzkumierz'; | ||
var desktop = "https://medium.com/@" + profileId; | ||
testProfileDesktop(profile, profileId, desktop); | ||
}); | ||
it('should dribbble', function () { | ||
var profile = 'dribbble'; | ||
var profileId = 'gkucmierz'; | ||
var desktop = "https://dribbble.com/" + profileId; | ||
testProfileDesktop(profile, profileId, desktop); | ||
}); | ||
it('should behance', function () { | ||
var profile = 'behance'; | ||
var profileId = 'grzegorzkumierz'; | ||
var desktop = "https://behance.net/" + profileId; | ||
testProfileDesktop(profile, profileId, desktop); | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=main.spec.js.map |
{ | ||
"name": "social-links", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"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
Sorry, the diff of this file is not supported yet
39339
449