diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/pcre/preg_quote.js | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/pcre/preg_quote.js')
-rw-r--r-- | node_modules/locutus/php/pcre/preg_quote.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/locutus/php/pcre/preg_quote.js b/node_modules/locutus/php/pcre/preg_quote.js deleted file mode 100644 index 0dcfd71..0000000 --- a/node_modules/locutus/php/pcre/preg_quote.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -module.exports = function preg_quote(str, delimiter) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/preg_quote/ - // original by: booeyOH - // improved by: Ates Goral (http://magnetiq.com) - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: Brett Zamir (http://brett-zamir.me) - // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman) - // example 1: preg_quote("$40") - // returns 1: '\\$40' - // example 2: preg_quote("*RRRING* Hello?") - // returns 2: '\\*RRRING\\* Hello\\?' - // example 3: preg_quote("\\.+*?[^]$(){}=!<>|:") - // returns 3: '\\\\\\.\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:' - - return (str + '').replace(new RegExp('[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + (delimiter || '') + '-]', 'g'), '\\$&'); -}; -//# sourceMappingURL=preg_quote.js.map
\ No newline at end of file |