[Pkg-javascript-commits] [node-mocha] 07/12: Bundle escape-string-regexp - right now it is too small and really only reverse depends on mocha
Leo Iannacone
l3on-guest at moszumanska.debian.org
Wed Oct 15 18:03:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
l3on-guest pushed a commit to branch master
in repository node-mocha.
commit 458f674bb0d611b4a54cfd0f72ee00d4eaed07f0
Author: Leo Iannacone <l3on at ubuntu.com>
Date: Wed Oct 15 19:15:32 2014 +0200
Bundle escape-string-regexp - right now it is too small and really only reverse depends on mocha
---
.../patches/0004-bundle_escape-string-regexp.patch | 179 +++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 180 insertions(+)
diff --git a/debian/patches/0004-bundle_escape-string-regexp.patch b/debian/patches/0004-bundle_escape-string-regexp.patch
new file mode 100644
index 0000000..153b061
--- /dev/null
+++ b/debian/patches/0004-bundle_escape-string-regexp.patch
@@ -0,0 +1,179 @@
+Description: Bundle escape-string-regexp - right now it is too small and
+ really only reverse depends on mocha.
+ Origin: https://github.com/sindresorhus/escape-string-regexp
+ Version: 1.0.2
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+Last-Update: 20>
+
+---
+ node_modules/escape-string-regexp/.editorconfig | 16 ++++++++++
+ node_modules/escape-string-regexp/.jshintrc | 13 ++++++++
+ node_modules/escape-string-regexp/.travis.yml | 5 +++
+ node_modules/escape-string-regexp/index.js | 11 +++++++
+ node_modules/escape-string-regexp/license | 21 ++++++++++++++
+ node_modules/escape-string-regexp/package.json | 36 ++++++++++++++++++++++++
+ node_modules/escape-string-regexp/readme.md | 27 ++++++++++++++++++
+ node_modules/escape-string-regexp/test.js | 7 ++++
+ 8 files changed, 136 insertions(+)
+
+--- /dev/null
++++ b/node_modules/escape-string-regexp/.editorconfig
+@@ -0,0 +1,16 @@
++# editorconfig.org
++root = true
++
++[*]
++indent_style = tab
++end_of_line = lf
++charset = utf-8
++trim_trailing_whitespace = true
++insert_final_newline = true
++
++[package.json]
++indent_style = space
++indent_size = 2
++
++[*.md]
++trim_trailing_whitespace = false
+--- /dev/null
++++ b/node_modules/escape-string-regexp/.jshintrc
+@@ -0,0 +1,13 @@
++{
++ "node": true,
++ "esnext": true,
++ "bitwise": true,
++ "camelcase": true,
++ "curly": true,
++ "immed": true,
++ "newcap": true,
++ "noarg": true,
++ "undef": true,
++ "unused": "vars",
++ "strict": true
++}
+--- /dev/null
++++ b/node_modules/escape-string-regexp/.travis.yml
+@@ -0,0 +1,5 @@
++language: node_js
++node_js:
++ - '0.8'
++ - '0.10'
++ - '0.11'
+--- /dev/null
++++ b/node_modules/escape-string-regexp/index.js
+@@ -0,0 +1,11 @@
++'use strict';
++
++var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
++
++module.exports = function (str) {
++ if (typeof str !== 'string') {
++ throw new TypeError('Expected a string');
++ }
++
++ return str.replace(matchOperatorsRe, '\\$&');
++};
+--- /dev/null
++++ b/node_modules/escape-string-regexp/license
+@@ -0,0 +1,21 @@
++The MIT License (MIT)
++
++Copyright (c) Sindre Sorhus <sindresorhus at 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.
+--- /dev/null
++++ b/node_modules/escape-string-regexp/package.json
+@@ -0,0 +1,36 @@
++{
++ "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 at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.8.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js"
++ ],
++ "keywords": [
++ "regex",
++ "regexp",
++ "re",
++ "regular",
++ "expression",
++ "escape",
++ "string",
++ "str",
++ "special",
++ "characters"
++ ],
++ "devDependencies": {
++ "mocha": "*"
++ }
++}
+--- /dev/null
++++ b/node_modules/escape-string-regexp/readme.md
+@@ -0,0 +1,27 @@
++# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp)
++
++> Escape RegExp special characters
++
++
++## Install
++
++```sh
++$ npm install --save escape-string-regexp
++```
++
++
++## Usage
++
++```js
++var escapeStringRegexp = require('escape-string-regexp');
++
++var escapedString = escapeStringRegexp('how much $ for a unicorn?');
++//=> how much \$ for a unicorn\?
++
++new RegExp(escapedString);
++```
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
+--- /dev/null
++++ b/node_modules/escape-string-regexp/test.js
+@@ -0,0 +1,7 @@
++'use strict';
++var assert = require('assert');
++var escapeStringRegexp = require('./');
++
++it('should escape RegExp special characters', function () {
++ assert.strictEqual(escapeStringRegexp('\\ ^ $ * + ? . ( ) | { } [ ]'), '\\\\ \\^ \\$ \\* \\+ \\? \\. \\( \\) \\| \\{ \\} \\[ \\]');
++});
diff --git a/debian/patches/series b/debian/patches/series
index 6c8e993..ae7d50b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001_makefile.patch
0002_fix_node_shebang.patch
0003_images_in_usr_share.patch
+0004-bundle_escape-string-regexp.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocha.git
More information about the Pkg-javascript-commits
mailing list