@wessberg/stringutil
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -0,1 +1,10 @@ | ||
<a name="1.0.15"></a> | ||
## <small>1.0.15 (2018-03-31)</small> | ||
* 1.0.15 ([e7b67e7](https://github.com/wessberg/StringUtil/commit/e7b67e7)) | ||
* Bumped deps ([8fbc748](https://github.com/wessberg/StringUtil/commit/8fbc748)) | ||
* Bumped version ([67107d8](https://github.com/wessberg/StringUtil/commit/67107d8)) | ||
<a name="1.0.14"></a> | ||
@@ -2,0 +11,0 @@ ## <small>1.0.14 (2018-02-03)</small> |
@@ -201,5 +201,10 @@ /** | ||
return this.lowerCaseFirst(str | ||
// Replaces any - or _ characters with a space | ||
.replace(/[-_+]+/g, " ").replace(/[ ]{2,}/g, " ") | ||
// Removes any non alphanumeric characters | ||
.replace(/[^\w\sa-zæøåàáäâëêéèïîíìöòóôüúùû&]/gi, "").replace(/[A-Z]{2,}/g, $1 => $1.toLowerCase()) | ||
// Uppercases the first character in each group immediately following a space | ||
// (delimited by spaces) | ||
.replace(/ (.)/g, $1 => $1.toUpperCase()) | ||
// Removes spaces | ||
.replace(/ /g, "")); | ||
@@ -206,0 +211,0 @@ } |
{ | ||
"name": "@wessberg/stringutil", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "A class for performing simple operations on strings.", | ||
@@ -21,9 +21,9 @@ "repository": { | ||
"clean": "npm run clean:dist && npm run clean:compiled", | ||
"tsc:dist:umd": "tsc --module umd --outDir dist/umd -p tsconfig.dist.json", | ||
"tsc:dist:cjs": "tsc --module commonjs --outDir dist/cjs -p tsconfig.dist.json", | ||
"tsc:dist:es2015": "tsc --module es2015 --outDir dist/es2015 -p tsconfig.dist.json", | ||
"tsc:test": "tsc --module umd --target es2017 --sourceMap", | ||
"build:umd": "npm run tsc:dist:umd", | ||
"tsc:test": "tsc --module commonjs --target es2017 --sourceMap", | ||
"build:cjs": "npm run tsc:dist:cjs", | ||
"build:es2015": "npm run tsc:dist:es2015", | ||
"prebuild": "npm run clean", | ||
"build": "npm run build:umd & npm run build:es2015", | ||
"build": "npm run build:cjs & npm run build:es2015", | ||
"tslint": "tslint -c tslint.json -p tsconfig.json", | ||
@@ -56,8 +56,8 @@ "validate": "npm run tslint && npm run test", | ||
"devDependencies": { | ||
"@wessberg/ts-config": "0.0.25", | ||
"@wessberg/ts-config": "0.0.26", | ||
"ava": "^0.25.0", | ||
"conventional-changelog-cli": "^1.3.8", | ||
"conventional-changelog-cli": "^1.3.21", | ||
"husky": "^0.14.3", | ||
"tslint": "^5.9.1", | ||
"typescript": "^2.7.1" | ||
"typescript": "^2.8.1" | ||
}, | ||
@@ -67,3 +67,3 @@ "dependencies": { | ||
}, | ||
"main": "./dist/umd/index.js", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/es2015/index.js", | ||
@@ -75,4 +75,4 @@ "browser": "./dist/es2015/index.js", | ||
"engines": { | ||
"node": ">=7.4.0" | ||
"node": ">=9.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
56910
1022
1