initial commit
This commit is contained in:
11
node_modules/es5-ext/reg-exp/escape.js
generated
vendored
Normal file
11
node_modules/es5-ext/reg-exp/escape.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Thanks to Andrew Clover:
|
||||
// http://stackoverflow.com/questions/3561493
|
||||
// /is-there-a-regexp-escape-function-in-javascript
|
||||
|
||||
"use strict";
|
||||
|
||||
var re = /[-/\\^$*+?.()|[\]{}]/g;
|
||||
|
||||
module.exports = function (str) {
|
||||
return String(str).replace(re, "\\$&");
|
||||
};
|
||||
Reference in New Issue
Block a user