Skip to content

Commit c7ea1c3

Browse files
committedApr 30, 2018
Update Readme [skip ci]
1 parent 354cfbf commit c7ea1c3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
 

‎README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ console.log(brackets('[![:lower:]]'));
4040

4141
## API
4242

43-
### [brackets](index.js#L28)
43+
### [brackets](index.js#L27)
4444

4545
Parses the given POSIX character class `pattern` and returns a
4646
string that can be used for creating regular expressions for matching.
@@ -51,7 +51,7 @@ string that can be used for creating regular expressions for matching.
5151
* `options` **{Object}**
5252
* `returns` **{Object}**
5353

54-
### [.match](index.js#L52)
54+
### [.match](index.js#L51)
5555

5656
Takes an array of strings and a POSIX character class pattern, and returns a new array with only the strings that matched the pattern.
5757

@@ -65,15 +65,15 @@ Takes an array of strings and a POSIX character class pattern, and returns a new
6565
**Example**
6666

6767
```js
68-
var brackets = require('expand-brackets');
68+
const brackets = require('expand-brackets');
6969
console.log(brackets.match(['1', 'a', 'ab'], '[[:alpha:]]'));
7070
//=> ['a']
7171

7272
console.log(brackets.match(['1', 'a', 'ab'], '[[:alpha:]]+'));
7373
//=> ['a', 'ab']
7474
```
7575

76-
### [.isMatch](index.js#L98)
76+
### [.isMatch](index.js#L97)
7777

7878
Returns true if the specified `string` matches the given brackets `pattern`.
7979

@@ -87,15 +87,15 @@ Returns true if the specified `string` matches the given brackets `pattern`.
8787
**Example**
8888

8989
```js
90-
var brackets = require('expand-brackets');
90+
const brackets = require('expand-brackets');
9191

9292
console.log(brackets.isMatch('a.a', '[[:alpha:]].[[:alpha:]]'));
9393
//=> true
9494
console.log(brackets.isMatch('1.2', '[[:alpha:]].[[:alpha:]]'));
9595
//=> false
9696
```
9797

98-
### [.matcher](index.js#L121)
98+
### [.matcher](index.js#L120)
9999

100100
Takes a POSIX character class pattern and returns a matcher function. The returned function takes the string to match as its only argument.
101101

@@ -108,16 +108,16 @@ Takes a POSIX character class pattern and returns a matcher function. The return
108108
**Example**
109109

110110
```js
111-
var brackets = require('expand-brackets');
112-
var isMatch = brackets.matcher('[[:lower:]].[[:upper:]]');
111+
const brackets = require('expand-brackets');
112+
const isMatch = brackets.matcher('[[:lower:]].[[:upper:]]');
113113

114114
console.log(isMatch('a.a'));
115115
//=> false
116116
console.log(isMatch('a.A'));
117117
//=> true
118118
```
119119

120-
### [.makeRe](index.js#L143)
120+
### [.makeRe](index.js#L140)
121121

122122
Create a regular expression from the given `pattern`.
123123

@@ -130,13 +130,13 @@ Create a regular expression from the given `pattern`.
130130
**Example**
131131

132132
```js
133-
var brackets = require('expand-brackets');
134-
var re = brackets.makeRe('[[:alpha:]]');
133+
const brackets = require('expand-brackets');
134+
const re = brackets.makeRe('[[:alpha:]]');
135135
console.log(re);
136136
//=> /^(?:[a-zA-Z])$/
137137
```
138138

139-
### [.create](index.js#L185)
139+
### [.create](index.js#L182)
140140

141141
Parses the given POSIX character class `pattern` and returns an object with the compiled `output` and optional source `map`.
142142

@@ -149,7 +149,7 @@ Parses the given POSIX character class `pattern` and returns an object with the
149149
**Example**
150150

151151
```js
152-
var brackets = require('expand-brackets');
152+
const brackets = require('expand-brackets');
153153
console.log(brackets('[[:alpha:]]'));
154154
// { options: { source: 'string' },
155155
// input: '[[:alpha:]]',
@@ -275,7 +275,7 @@ Pull requests and stars are always welcome. For bugs and feature requests, [plea
275275
| **Commits** | **Contributor** |
276276
| --- | --- |
277277
| 69 | [jonschlinkert](https://github.com/jonschlinkert) |
278-
| 7 | [danez](https://github.com/danez) |
278+
| 13 | [danez](https://github.com/danez) |
279279
| 2 | [MartinKolarik](https://github.com/MartinKolarik) |
280280
| 2 | [es128](https://github.com/es128) |
281281
| 1 | [doowb](https://github.com/doowb) |
@@ -314,4 +314,4 @@ Released under the [MIT License](LICENSE).
314314

315315
***
316316

317-
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on March 26, 2018._
317+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on April 30, 2018._

0 commit comments

Comments
 (0)
Please sign in to comment.