Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
5
node_modules/filename-reserved-regex/index.js
generated
vendored
Normal file
5
node_modules/filename-reserved-regex/index.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
'use strict';
|
||||
/* eslint-disable no-control-regex */
|
||||
// TODO: remove parens when Node.js 6 is targeted. Node.js 4 barfs at it.
|
||||
module.exports = () => (/[<>:"\/\\|?*\x00-\x1F]/g);
|
||||
module.exports.windowsNames = () => (/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i);
|
21
node_modules/filename-reserved-regex/license
generated
vendored
Normal file
21
node_modules/filename-reserved-regex/license
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
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.
|
36
node_modules/filename-reserved-regex/package.json
generated
vendored
Normal file
36
node_modules/filename-reserved-regex/package.json
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"name": "filename-reserved-regex",
|
||||
"version": "2.0.0",
|
||||
"description": "Regular expression for matching reserved filename characters",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/filename-reserved-regex",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"re",
|
||||
"regex",
|
||||
"regexp",
|
||||
"filename",
|
||||
"reserved",
|
||||
"illegal"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"xo": {
|
||||
"esnext": true
|
||||
}
|
||||
}
|
49
node_modules/filename-reserved-regex/readme.md
generated
vendored
Normal file
49
node_modules/filename-reserved-regex/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
# filename-reserved-regex [](https://travis-ci.org/sindresorhus/filename-reserved-regex)
|
||||
|
||||
> Regular expression for matching reserved filename characters
|
||||
|
||||
On Unix-like systems `/` is reserved and [`<>:"/\|?*`](http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29#naming_conventions) as well as non-printable characters `\x00-\x1F` on Windows.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save filename-reserved-regex
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const filenameReservedRegex = require('filename-reserved-regex');
|
||||
|
||||
filenameReservedRegex().test('foo/bar');
|
||||
//=> true
|
||||
|
||||
filenameReservedRegex().test('foo-bar');
|
||||
//=> false
|
||||
|
||||
'foo/bar'.replace(filenameReservedRegex(), '!');
|
||||
//=> 'foo!bar'
|
||||
|
||||
filenameReservedRegex.windowsNames().test('aux');
|
||||
//=> true
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### filenameReservedRegex()
|
||||
|
||||
Returns a regex that matches all invalid characters.
|
||||
|
||||
### filenameReservedRegex.windowsNames()
|
||||
|
||||
Returns a exact-match case-insensitive regex that matches invalid Windows
|
||||
filenames. These include `CON`, `PRN`, `AUX`, `NUL`, `COM1`, `COM2`, `COM3`, `COM4`, `COM5`,
|
||||
`COM6`, `COM7`, `COM8`, `COM9`, `LPT1`, `LPT2`, `LPT3`, `LPT4`, `LPT5`, `LPT6`, `LPT7`, `LPT8`
|
||||
and `LPT9`.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue