Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "slugify", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Slugifies a String", | ||
@@ -19,5 +19,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"coveralls": "^3.0.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^5.2.0" | ||
"coveralls": "^3.1.0", | ||
"mocha": "^7.2.0", | ||
"nyc": "^15.1.0" | ||
}, | ||
@@ -34,4 +34,4 @@ "main": "./slugify.js", | ||
"build": "node bin/build", | ||
"test:ci": "mocha test/", | ||
"test:cov": "istanbul cover _mocha", | ||
"test:ci": "npx mocha --recursive", | ||
"test:cov": "npx nyc --reporter=lcov --reporter=text-summary mocha -- --recursive", | ||
"test": "npm run build && npm run test:ci" | ||
@@ -38,0 +38,0 @@ }, |
@@ -52,2 +52,4 @@ | ||
.replace(new RegExp('[^a-zA-Z0-9' + replacement + ']', 'g'), '') | ||
// remove duplicates of the replacement character | ||
.replace(new RegExp('[\\s' + replacement + ']+', 'g'), replacement) | ||
} | ||
@@ -54,0 +56,0 @@ |
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
12448
93