Comparing version 1.1.0 to 1.1.1
@@ -17,2 +17,5 @@ "use strict"; | ||
var protocol = hasprotocol_1.default(encoded) || ""; | ||
// remove the protocol before proceeding to any other test | ||
if (protocol) | ||
encoded = encoded.substr(protocol.length); | ||
// test 1: it's a file | ||
@@ -27,4 +30,2 @@ if (options.files && protocol === "file:///" && encoded.substr(protocol.length).split(/\/|\\/).length - 1) { | ||
} | ||
else if (protocol) | ||
encoded = encoded.substr(protocol.length); | ||
// test 2: it's a URL | ||
@@ -31,0 +32,0 @@ if ((!urlObj) && options.urls && url_1.default(encoded)) { |
{ | ||
"name": "anchorme", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A library to convert URLs to a clickable HTML anchor elements", | ||
@@ -30,10 +30,10 @@ "main": "./dist-node/index.js", | ||
"devDependencies": { | ||
"@types/jest": "^18.1.1", | ||
"@types/jest": "^19.2.2", | ||
"jest": "^19.0.2", | ||
"rollup": "^0.36.3", | ||
"rollup": "^0.41.6", | ||
"rollup-plugin-buble": "^0.15.0", | ||
"rollup-plugin-commonjs": "^7.0.0", | ||
"ts-jest": "^19.0.0", | ||
"typescript": "^2.2.1", | ||
"uglify-js": "^2.7.3" | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"ts-jest": "^19.0.7", | ||
"typescript": "^2.2.2", | ||
"uglify-js": "^2.8.21" | ||
}, | ||
@@ -40,0 +40,0 @@ "dependencies": {}, |
35723
550