0.1.1 • Published 6 years ago

@regexp-extra/dot-file v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 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

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago