Comparing version 1.2.0 to 1.3.0
@@ -16,3 +16,3 @@ 'use strict'; | ||
// Break out any numbers contained within a word | ||
text = text.replace(/(\S)([0-9]+)(\S)/g, '$1 $2 $3'); | ||
text = text.replace(/([^\d\s])([0-9]+)([^\d\s])/g, '$1 $2 $3'); | ||
// Should we remove the separator before a digit where previous word does not end in a digit? | ||
@@ -19,0 +19,0 @@ var mergeDigitSuffixes = false; |
{ | ||
"name": "limax", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"main": "./lib/limax", | ||
@@ -33,3 +33,4 @@ "description": "Node.js module to generate URL slugs. Another one? This one cares about i18n and transliterates non-Latin scripts to conform to the RFC3986 standard. Mostly API-compatible with similar modules.", | ||
"Zhe Feng <fengzhe1983@gmail.com>", | ||
"Aleksey Olenyuk <alo@qapint.com>" | ||
"Aleksey Olenyuk <alo@qapint.com>", | ||
"Daryl Chan <dvrylc@gmail.com>" | ||
], | ||
@@ -36,0 +37,0 @@ "license": "Apache-2.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
6516