Comparing version 0.7.0 to 0.7.1
@@ -13,3 +13,11 @@ var fs = require('fs'), | ||
str = str || ''; | ||
str = str.replace(/\/\*[\s\S]*(?:\*\/)/g, ''); //everything between "/* */" | ||
// replace everything between "/* */" in a non-greedy way | ||
// The English version of the regex is: | ||
// match '/*' | ||
// then match 0 or more instances of any character (including newlines) | ||
// except for instances of '*/' | ||
// then match '*/' | ||
str = str.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\//g, ''); | ||
str = str.replace(/\/\/[^\n\r]*/g, ''); //everything after "//" | ||
@@ -16,0 +24,0 @@ return str; |
{ | ||
"name": "jshint", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A CLI for JSHint", | ||
@@ -22,3 +22,2 @@ "homepage": "http://github.com/jshint/node-jshint", | ||
"LICENSE", | ||
"HELP", | ||
"bin/hint", | ||
@@ -25,0 +24,0 @@ "lib" |
@@ -13,6 +13,4 @@ # node-jshint | ||
The command line interface looks like this. | ||
jshint -h | ||
jshint path path2 [options] | ||
You can also require JSHint itself as a module. | ||
@@ -72,3 +70,3 @@ | ||
If there is a .jshintignore file in your project's directory tree, (also provided you run `jshint` from within your project's directory true) then any directories or files specified will be skipped over. (behaves just like a `.gitignore` file) | ||
If there is a .jshintignore file in your project's directory tree, (also provided you run `jshint` from within your project's directory) then any directories or files specified will be skipped over. (behaves just like a `.gitignore` file) | ||
@@ -75,0 +73,0 @@ **Note:** Pattern matching uses minimatch, with the nocase [option](https://github.com/isaacs/minimatch). When there is no match, it performs a left side match (when no forward slashes present and path is a directory). |
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
4427
181481
11
85