Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
28
node_modules/astral-regex/index.d.ts
generated
vendored
Normal file
28
node_modules/astral-regex/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
declare namespace astralRegex {
|
||||
interface Options {
|
||||
/**
|
||||
Only match an exact string. Useful with `RegExp#test()` to check if a string is a astral symbol. Default: `false` _(Matches any astral symbols in a string)_
|
||||
*/
|
||||
readonly exact?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Regular expression for matching [astral symbols](https://everything2.com/title/astral+plane).
|
||||
|
||||
@returns A `RegExp` for matching astral symbols.
|
||||
|
||||
@example
|
||||
```
|
||||
import astralRegex = require('astral-regex');
|
||||
|
||||
astralRegex({exact: true}).test('🦄');
|
||||
//=> true
|
||||
|
||||
'foo 🦄 💩 bar'.match(astralRegex());
|
||||
//=> ['🦄', '💩']
|
||||
```
|
||||
*/
|
||||
declare function astralRegex(options?: astralRegex.Options): RegExp;
|
||||
|
||||
export = astralRegex;
|
||||
4
node_modules/astral-regex/index.js
generated
vendored
4
node_modules/astral-regex/index.js
generated
vendored
|
|
@ -1,4 +1,6 @@
|
|||
'use strict';
|
||||
const regex = '[\uD800-\uDBFF][\uDC00-\uDFFF]';
|
||||
|
||||
module.exports = opts => opts && opts.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g');
|
||||
const astralRegex = options => options && options.exact ? new RegExp(`^${regex}$`) : new RegExp(regex, 'g');
|
||||
|
||||
module.exports = astralRegex;
|
||||
|
|
|
|||
15
node_modules/astral-regex/package.json
generated
vendored
15
node_modules/astral-regex/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astral-regex",
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"description": "Regular expression for matching astral symbols",
|
||||
"license": "MIT",
|
||||
"repository": "kevva/astral-regex",
|
||||
|
|
@ -10,13 +10,14 @@
|
|||
"url": "github.com/kevva"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"astral",
|
||||
|
|
@ -24,9 +25,9 @@
|
|||
"regex",
|
||||
"surrogate"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
||||
7
node_modules/astral-regex/readme.md
generated
vendored
7
node_modules/astral-regex/readme.md
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
# astral-regex [](https://travis-ci.org/kevva/astral-regex)
|
||||
|
||||
> Regular expression for matching astral symbols
|
||||
> Regular expression for matching [astral symbols](https://everything2.com/title/astral+plane)
|
||||
|
||||
|
||||
## Install
|
||||
|
|
@ -15,8 +15,11 @@ $ npm install astral-regex
|
|||
```js
|
||||
const astralRegex = require('astral-regex');
|
||||
|
||||
astralRegex({exact: true}).test('');
|
||||
astralRegex({exact: true}).test('🦄');
|
||||
//=> true
|
||||
|
||||
'foo 🦄 💩 bar'.match(astralRegex());
|
||||
//=> ['🦄', '💩']
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue