UNPKG
dotfile-regex
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
0.1.2
0.1.0
Regular expresson for matching dotfiles.
github.com/regexhq/dotfile-regex
regexhq/dotfile-regex
dotfile-regex
/
index.js
13 lines
(10 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/*! * dotfile-regex <https://github.com/regexps/dotfile-regex> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */
'use strict'
;
module
.
exports
=
function
dotfileRegex
(
) {
return
/(?:^|[\\\/])(\.(?!\.)[^\\\/]+)$/
; };