0.1.1 • Published 7 years ago

@regexp-extra/dot-file v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

RegExp for matching dot files, like .gitignore.

const DOT_FILE = require('@regexp-extra/dot-file');
// -> regular expression


DOT_FILE.test('.git/');
// false

DOT_FILE.test('.gitignore');
// true

new RegExp(DOT_FILE).exec('a/b/c/.gitignore');
// [ '/.gitignore',
//   '.gitignore',
//   index: 5,
//   input: 'a/b/c/.gitignore',
//   groups: undefined ]

NPM

credits: taken directly from regexhq/dotfile-regex.

0.1.1

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago