summaryrefslogtreecommitdiff
path: root/desktop/node_modules/author-regex
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-10-24 17:43:37 +0200
committerRaindropsSys <raindrops@equestria.dev>2023-10-24 17:43:37 +0200
commitae187b6d75c8079da0be1dc288613bad8466fe61 (patch)
tree5ea0d34185a2270f29ffaa65e1f5258028d7d5d0 /desktop/node_modules/author-regex
downloadmist-ae187b6d75c8079da0be1dc288613bad8466fe61.tar.gz
mist-ae187b6d75c8079da0be1dc288613bad8466fe61.tar.bz2
mist-ae187b6d75c8079da0be1dc288613bad8466fe61.zip
Initial commit
Diffstat (limited to 'desktop/node_modules/author-regex')
-rw-r--r--desktop/node_modules/author-regex/LICENSE22
-rw-r--r--desktop/node_modules/author-regex/README.md69
-rw-r--r--desktop/node_modules/author-regex/index.js13
-rw-r--r--desktop/node_modules/author-regex/package.json57
4 files changed, 161 insertions, 0 deletions
diff --git a/desktop/node_modules/author-regex/LICENSE b/desktop/node_modules/author-regex/LICENSE
new file mode 100644
index 0000000..9bd36fe
--- /dev/null
+++ b/desktop/node_modules/author-regex/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2014 Jon Schlinkert, contributors.
+
+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/desktop/node_modules/author-regex/README.md b/desktop/node_modules/author-regex/README.md
new file mode 100644
index 0000000..129534c
--- /dev/null
+++ b/desktop/node_modules/author-regex/README.md
@@ -0,0 +1,69 @@
+# author-regex [![NPM version](https://badge.fury.io/js/author-regex.svg)](http://badge.fury.io/js/author-regex)
+
+
+> Regular expression for parsing an `author` string into an object following npm conventions.
+
+This the regex used by [parse-authors](https://github.com/jonschlinkert/parse-authors).
+
+
+**Related**
+
+ - [parse-author](https://github.com/jonschlinkert/parse-author)
+ - [parse-authors](https://github.com/jonschlinkert/parse-authors)
+
+
+## Install
+#### Install with [npm](npmjs.org)
+
+```bash
+npm i author-regex --save
+```
+#### Install with [bower](https://github.com/bower/bower)
+
+```bash
+bower install author-regex --save
+```
+
+## Tests
+
+Run
+
+```bash
+npm test
+```
+
+## Usage
+
+```js
+var re = require('author-regex');
+
+function authors(str) {
+ return re().exec(str);
+}
+console.log(author('Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)'));
+```
+Returns:
+
+```js
+[ 'Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)',
+ 'Jon Schlinkert',
+ 'foo@bar.com',
+ 'https://github.com/jonschlinkert',
+ index: 0,
+ input: 'Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)' ]
+```
+
+## Author
+
+**Jon Schlinkert**
+
++ [github/jonschlinkert](https://github.com/jonschlinkert)
++ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+## License
+Copyright (c) 2014 Jon Schlinkert, contributors.
+Released under the MIT license
+
+***
+
+_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 29, 2014._ \ No newline at end of file
diff --git a/desktop/node_modules/author-regex/index.js b/desktop/node_modules/author-regex/index.js
new file mode 100644
index 0000000..4d76730
--- /dev/null
+++ b/desktop/node_modules/author-regex/index.js
@@ -0,0 +1,13 @@
+/*!
+ * author-regex <https://github.com/jonschlinkert/author-regex>
+ *
+ * Copyright (c) 2014, 2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+'use strict';
+
+module.exports = function() {
+ return /^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/;
+};
+
diff --git a/desktop/node_modules/author-regex/package.json b/desktop/node_modules/author-regex/package.json
new file mode 100644
index 0000000..3a22c96
--- /dev/null
+++ b/desktop/node_modules/author-regex/package.json
@@ -0,0 +1,57 @@
+{
+ "name": "author-regex",
+ "description": "Regular expression for parsing an `author` string into an object following npm conventions.",
+ "version": "1.0.0",
+ "homepage": "https://github.com/jonschlinkert/author-regex",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "repository": "jonschlinkert/author-regex",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/author-regex/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.8"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "keywords": [
+ "author",
+ "authors",
+ "exec",
+ "expression",
+ "extract",
+ "maintainer",
+ "maintainers",
+ "match",
+ "package",
+ "parse",
+ "person",
+ "pkg",
+ "re",
+ "regex",
+ "regexp",
+ "regular"
+ ],
+ "devDependencies": {
+ "gulp-format-md": "^0.1.11",
+ "mocha": "^3.2.0"
+ },
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ }
+}