UNPKG

dotfile-regex

Version:

Regular expresson for matching dotfiles.

13 lines (10 loc) 256 B
/*! * 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 /(?:^|[\\\/])(\.(?!\.)[^\\\/]+)$/; };