aboutsummaryrefslogtreecommitdiff
path: root/node_modules/escape-string-regexp
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/escape-string-regexp
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
downloadwallet-core-d1291f67551c58168af43698a359cb5ddfd266b0.tar.xz
node_modules
Diffstat (limited to 'node_modules/escape-string-regexp')
-rw-r--r--node_modules/escape-string-regexp/index.js2
-rw-r--r--node_modules/escape-string-regexp/license21
-rw-r--r--node_modules/escape-string-regexp/package.json101
-rw-r--r--node_modules/escape-string-regexp/readme.md8
4 files changed, 18 insertions, 114 deletions
diff --git a/node_modules/escape-string-regexp/index.js b/node_modules/escape-string-regexp/index.js
index 7834bf9b2..ac6572cab 100644
--- a/node_modules/escape-string-regexp/index.js
+++ b/node_modules/escape-string-regexp/index.js
@@ -7,5 +7,5 @@ module.exports = function (str) {
throw new TypeError('Expected a string');
}
- return str.replace(matchOperatorsRe, '\\$&');
+ return str.replace(matchOperatorsRe, '\\$&');
};
diff --git a/node_modules/escape-string-regexp/license b/node_modules/escape-string-regexp/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/escape-string-regexp/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/escape-string-regexp/package.json b/node_modules/escape-string-regexp/package.json
index 0f21c56fb..1dff6ff23 100644
--- a/node_modules/escape-string-regexp/package.json
+++ b/node_modules/escape-string-regexp/package.json
@@ -1,111 +1,36 @@
{
- "_args": [
- [
- {
- "raw": "escape-string-regexp@^1.0.2",
- "scope": null,
- "escapedName": "escape-string-regexp",
- "name": "escape-string-regexp",
- "rawSpec": "^1.0.2",
- "spec": ">=1.0.2 <2.0.0",
- "type": "range"
- },
- "/home/dold/repos/taler/wallet-webex/node_modules/chalk"
- ]
- ],
- "_from": "escape-string-regexp@>=1.0.2 <2.0.0",
- "_id": "escape-string-regexp@1.0.5",
- "_inCache": true,
- "_location": "/escape-string-regexp",
- "_nodeVersion": "4.2.6",
- "_npmOperationalInternal": {
- "host": "packages-9-west.internal.npmjs.com",
- "tmp": "tmp/escape-string-regexp-1.0.5.tgz_1456059312074_0.7245344955008477"
- },
- "_npmUser": {
- "name": "jbnicolai",
- "email": "jappelman@xebia.com"
- },
- "_npmVersion": "2.14.12",
- "_phantomChildren": {},
- "_requested": {
- "raw": "escape-string-regexp@^1.0.2",
- "scope": null,
- "escapedName": "escape-string-regexp",
- "name": "escape-string-regexp",
- "rawSpec": "^1.0.2",
- "spec": ">=1.0.2 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/chalk",
- "/gulp-gzip/chalk",
- "/gulp-sym/chalk"
- ],
- "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "_shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
- "_shrinkwrap": null,
- "_spec": "escape-string-regexp@^1.0.2",
- "_where": "/home/dold/repos/taler/wallet-webex/node_modules/chalk",
+ "name": "escape-string-regexp",
+ "version": "1.0.2",
+ "description": "Escape RegExp special characters",
+ "license": "MIT",
+ "repository": "sindresorhus/escape-string-regexp",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/escape-string-regexp/issues"
- },
- "dependencies": {},
- "description": "Escape RegExp special characters",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
- "tarball": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz"
+ "url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.8.0"
},
+ "scripts": {
+ "test": "mocha"
+ },
"files": [
"index.js"
],
- "gitHead": "db124a3e1aae9d692c4899e42a5c6c3e329eaa20",
- "homepage": "https://github.com/sindresorhus/escape-string-regexp",
"keywords": [
- "escape",
"regex",
"regexp",
"re",
"regular",
"expression",
+ "escape",
"string",
"str",
"special",
"characters"
],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- {
- "name": "jbnicolai",
- "email": "jappelman@xebia.com"
- }
- ],
- "name": "escape-string-regexp",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/escape-string-regexp.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.5"
+ "devDependencies": {
+ "mocha": "*"
+ }
}
diff --git a/node_modules/escape-string-regexp/readme.md b/node_modules/escape-string-regexp/readme.md
index 87ac82d5e..808a963a8 100644
--- a/node_modules/escape-string-regexp/readme.md
+++ b/node_modules/escape-string-regexp/readme.md
@@ -5,7 +5,7 @@
## Install
-```
+```sh
$ npm install --save escape-string-regexp
```
@@ -13,10 +13,10 @@ $ npm install --save escape-string-regexp
## Usage
```js
-const escapeStringRegexp = require('escape-string-regexp');
+var escapeStringRegexp = require('escape-string-regexp');
-const escapedString = escapeStringRegexp('how much $ for a unicorn?');
-//=> 'how much \$ for a unicorn\?'
+var escapedString = escapeStringRegexp('how much $ for a unicorn?');
+//=> how much \$ for a unicorn\?
new RegExp(escapedString);
```