This commit is contained in:
Aevann1 2021-12-13 22:28:32 +00:00
parent 628618df89
commit e031240dff
3749 changed files with 1120848 additions and 1 deletions

12
node_modules/rgba-regex/.editorconfig generated vendored Normal file
View file

@ -0,0 +1,12 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

1
node_modules/rgba-regex/.npmignore generated vendored Normal file
View file

@ -0,0 +1 @@
node_modules/

5
node_modules/rgba-regex/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.10
- 0.11

21
node_modules/rgba-regex/LICENSE.md generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 John Otander
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.

52
node_modules/rgba-regex/README.md generated vendored Normal file
View file

@ -0,0 +1,52 @@
# rgba-regex
[![Build Status](https://secure.travis-ci.org/regexps/rgba-regex.png?branch=master)](https://travis-ci.org/regexps/rgba-regex)
Regex for matching RGBA color strings.
## Installation
```bash
npm install --save rgba-regex
```
## Usage
```javascript
var rgbaRegex = require('rgba-regex');
rgbaRegex({ exact: true }).test('rgba(12, 34, 56, .8)'); // => true
rgbaRegex({ exact: true }).test('unicorns'); // -> false
rgbaRegex({ exact: true }).test('rgba(,,,)'); // => false
rgbaRegex().exec('rgba(12, 34, 56, .8)');
// => [
// '12',
// '34',
// '56',
// '.8'
// index: 0,
// input: 'rgba(12,34,56, .8)'
// ]
'rgba(12, 34, 56, .8) cats and dogs'.match(rgbaRegex());
// = ['rgba(12, 34, 56, .8)']
```
## License
MIT
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).
***
> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).

9
node_modules/rgba-regex/index.js generated vendored Normal file
View file

@ -0,0 +1,9 @@
'use strict';
module.exports = function rgbaRegex(options) {
options = options || {};
return options.exact ?
/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/ :
/rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)/ig;
}

66
node_modules/rgba-regex/package.json generated vendored Normal file
View file

@ -0,0 +1,66 @@
{
"_args": [
[
"rgba-regex@1.0.0",
"/d"
]
],
"_from": "rgba-regex@1.0.0",
"_id": "rgba-regex@1.0.0",
"_inBundle": false,
"_integrity": "sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=",
"_location": "/rgba-regex",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "rgba-regex@1.0.0",
"name": "rgba-regex",
"escapedName": "rgba-regex",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/is-color-stop"
],
"_resolved": "https://registry.npmjs.org/rgba-regex/-/rgba-regex-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "/d",
"author": {
"name": "John Otander"
},
"bugs": {
"url": "https://github.com/johnotander/rgba-regex/issues"
},
"dependencies": {},
"description": "Regex for matching RGBA color strings.",
"devDependencies": {
"mocha": "*"
},
"directories": {
"test": "test"
},
"homepage": "https://github.com/johnotander/rgba-regex",
"keywords": [
"css",
"regex",
"regexp",
"regexps",
"rgba",
"color",
"regular",
"expression"
],
"license": "MIT",
"main": "index.js",
"name": "rgba-regex",
"repository": {
"type": "git",
"url": "git+https://github.com/johnotander/rgba-regex.git"
},
"scripts": {
"test": "mocha test"
},
"version": "1.0.0"
}

51
node_modules/rgba-regex/test/test.js generated vendored Normal file
View file

@ -0,0 +1,51 @@
var assert = require('assert');
var rgbaRegex = require('..');
var rgbaStrings = [
'rgba(12,34,56, 1)',
'rgba(255, 255, 255, .9)',
'rgba(1, 1,1, 0.2)'
];
var inexactRgbaStrings = [
'rgba(,,,)',
'rGba(12,34,56,1)',
'rgba(12, 34, 200,1) ',
' rgba(12,34,56,1)',
'rgba(1,2,,)'
];
describe('rgba-regex', function() {
describe('exact: true', function() {
it('should return a regex that matches exact rgba strings', function() {
rgbaStrings.forEach(function(rgba) {
assert.ok(rgbaRegex({ exact: true }).test(rgba));
});
});
it('should return a regex that does not match invalid rgba strings', function() {
inexactRgbaStrings.forEach(function(invalidRgba) {
assert.ok(!rgbaRegex({ exact: true }).test(invalidRgba));
});
});
});
describe('g', function() {
it('should match rgba strings', function() {
assert.deepEqual(
rgbaStrings.join('foobar').match(rgbaRegex()),
rgbaStrings
)
});
it('should not match non rgba strings', function() {
assert.deepEqual(
inexactRgbaStrings.join('foobar').match(rgbaRegex()),
['rGba(12,34,56,1)', 'rgba(12, 34, 200,1)', 'rgba(12,34,56,1)']
);
});
});
});