diff options
Diffstat (limited to 'assets/node_modules/remark-parse/lib/locate/url.js')
-rw-r--r-- | assets/node_modules/remark-parse/lib/locate/url.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/assets/node_modules/remark-parse/lib/locate/url.js b/assets/node_modules/remark-parse/lib/locate/url.js deleted file mode 100644 index e5bf5bf..0000000 --- a/assets/node_modules/remark-parse/lib/locate/url.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict' - -module.exports = locate - -var protocols = ['https://', 'http://', 'mailto:'] - -function locate(value, fromIndex) { - var length = protocols.length - var index = -1 - var min = -1 - var position - - if (!this.options.gfm) { - return -1 - } - - while (++index < length) { - position = value.indexOf(protocols[index], fromIndex) - - if (position !== -1 && (position < min || min === -1)) { - min = position - } - } - - return min -} |