dotfile-regex
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "dotfile-regex", | ||
"description": "Regular expresson for matching dotfiles.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "https://github.com/regexps/dotfile-regex", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -15,4 +15,11 @@ # dotfile-regex [![NPM version](https://img.shields.io/npm/v/dotfile-regex.svg?style=flat)](https://www.npmjs.com/package/dotfile-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/dotfile-regex.svg?style=flat)](https://npmjs.org/package/dotfile-regex) [![NPM total downloads](https://img.shields.io/npm/dt/dotfile-regex.svg?style=flat)](https://npmjs.org/package/dotfile-regex) [![Linux Build Status](https://img.shields.io/travis/regexps/dotfile-regex.svg?style=flat&label=Travis)](https://travis-ci.org/regexps/dotfile-regex) | ||
To be considered a dotfile, there cannot be any slashes following the filename. | ||
To be considered a dot **file**: | ||
* the path must contain a dot that is at the beginning of the string or following a slash | ||
* the next character after the dot must not be another dot | ||
* one or more characters must follow the dot | ||
* a slash must not follow the dot | ||
To check for dot **directories**, use [dotdir-regex](https://github.com/regexps/dotdir-regex) instead. | ||
```js | ||
@@ -19,0 +26,0 @@ var dotfileRegex = require('dotfile-regex'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6149
96