add escaped examples to docs
This commit is contained in:
parent
733822f4af
commit
132835b4b4
2 changed files with 32 additions and 0 deletions
16
.verb.md
16
.verb.md
|
|
@ -16,6 +16,16 @@ isExtglob('+(abc)');
|
||||||
|
|
||||||
**False**
|
**False**
|
||||||
|
|
||||||
|
Escaped extglobs:
|
||||||
|
|
||||||
|
```js
|
||||||
|
isExtglob('\\?(abc)');
|
||||||
|
isExtglob('\\@(abc)');
|
||||||
|
isExtglob('\\!(abc)');
|
||||||
|
isExtglob('\\*(abc)');
|
||||||
|
isExtglob('\\+(abc)');
|
||||||
|
```
|
||||||
|
|
||||||
Everything else...
|
Everything else...
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
@ -31,3 +41,9 @@ isExtglob('abc/?.js');
|
||||||
isExtglob('abc.js');
|
isExtglob('abc.js');
|
||||||
isExtglob('abc/def/ghi.js');
|
isExtglob('abc/def/ghi.js');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## History
|
||||||
|
|
||||||
|
**v2.0**
|
||||||
|
|
||||||
|
Adds support for escaping. Escaped exglobs no longer return true.
|
||||||
16
README.md
16
README.md
|
|
@ -28,6 +28,16 @@ isExtglob('+(abc)');
|
||||||
|
|
||||||
**False**
|
**False**
|
||||||
|
|
||||||
|
Escaped extglobs:
|
||||||
|
|
||||||
|
```js
|
||||||
|
isExtglob('\\?(abc)');
|
||||||
|
isExtglob('\\@(abc)');
|
||||||
|
isExtglob('\\!(abc)');
|
||||||
|
isExtglob('\\*(abc)');
|
||||||
|
isExtglob('\\+(abc)');
|
||||||
|
```
|
||||||
|
|
||||||
Everything else...
|
Everything else...
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
@ -44,6 +54,12 @@ isExtglob('abc.js');
|
||||||
isExtglob('abc/def/ghi.js');
|
isExtglob('abc/def/ghi.js');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## History
|
||||||
|
|
||||||
|
**v2.0**
|
||||||
|
|
||||||
|
Adds support for escaping. Escaped exglobs no longer return true.
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
### Related projects
|
### Related projects
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue