0.1.1 • Published 7 years ago

@regexp-extra/dot-dir v0.1.1

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

RegExp for matching dot directories, like .git/.

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


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

DOT_DIR.test('.git/a/b/c');
// true

DOT_DIR.test('a/.git/b/c');
// true

'a/.git/b/c'.match(DOT_DIR);
// [ '/.git/',
//   '.git',
//   index: 1,
//   input: 'a/.git/b/c',
//   groups: undefined ]

NPM

credits: taken directly from regexhq/dotdir-regex.

0.1.1

7 years ago

0.1.0

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