Commit 195c32e 1 parent 9e8bc20 commit 195c32e Copy full SHA for 195c32e
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ This package implements the [es-shim API](https://github.com/es-shims/api) inter
18
18
Most common usage:
19
19
``` js
20
20
var flags = require (' regexp.prototype.flags' );
21
+ var assert = require (' assert' );
21
22
22
23
assert (flags (/ a/ ) === ' ' );
23
- assert (flags (new RegExp (' a' ) === ' ' );
24
+ assert (flags (new RegExp (' a' )) === ' ' );
24
25
assert (flags (/ a/ mig ) === ' gim' );
25
26
assert (flags (new RegExp (' a' , ' mig' )) === ' gim' );
26
27
@@ -29,7 +30,7 @@ if (!RegExp.prototype.flags) {
29
30
}
30
31
31
32
assert (flags (/ a/ ) === / a/ .flags );
32
- assert (flags (new RegExp (' a' ) === new RegExp (' a' ).flags );
33
+ assert (flags (new RegExp (' a' )) === new RegExp (' a' ).flags );
33
34
assert (flags (/ a/ mig ) === / a/ mig .flags );
34
35
assert (flags (new RegExp (' a' , ' mig' )) === new RegExp (' a' , ' mig' ).flags );
35
36
```
Original file line number Diff line number Diff line change 18
18
"tests-only" : " nyc tape 'test/**/*.js'" ,
19
19
"prelint" : " eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\ .git')" ,
20
20
"lint" : " eslint --ext=js,mjs ." ,
21
- "postlint" : " es-shim-api --bound" ,
21
+ "postlint" : " evalmd README.md && es-shim-api --bound" ,
22
22
"version" : " auto-changelog && git add CHANGELOG.md" ,
23
23
"postversion" : " auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \" v$(node -e \" console.log(require('./package.json').version)\" )\" "
24
24
},
54
54
"eclint" : " ^2.8.1" ,
55
55
"es-value-fixtures" : " ^1.4.2" ,
56
56
"eslint" : " =8.8.0" ,
57
+ "evalmd" : " ^0.0.19" ,
57
58
"for-each" : " ^0.3.3" ,
58
59
"functions-have-names" : " ^1.2.3" ,
59
60
"has-strict-mode" : " ^1.0.1" ,
You can’t perform that action at this time.
0 commit comments