mediawiki-title
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -412,4 +412,6 @@ 'use strict'; | ||
title = title | ||
// Strip Unicode bidi override characters. | ||
.replace(/[\u200E\u200F\u202A-\u202E]/g, '') | ||
// Strip soft hyphens (U+00AD) and Unicode directional formatting | ||
// characters (U+061C, U+200E, U+200F, U+202A. U+202B, U+202C, U+202D, | ||
// U+202E, U+2066, U+2067, U+2068, U+2069). | ||
.replace(/[\u00AD\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]+/g, '') | ||
// Clean up whitespace | ||
@@ -416,0 +418,0 @@ .replace(/[ _\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+/g, '_') |
{ | ||
"name": "mediawiki-title", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Title normalization library for mediawiki", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -175,2 +175,3 @@ 'use strict'; | ||
['en.wikipedia.org', 'Foo\u200E\u200F\u202A\u202B\u202C\u202D\u202Ebar', 'Foobar'], | ||
['en.wikipedia.org', 'Foo\u00AD\u061C\u2066\u2067\u2068\u2069bar', 'Foobar'], | ||
// Special handling for `i` first character | ||
@@ -177,0 +178,0 @@ ['tr.wikipedia.org', 'iTestTest', 'İTestTest'], |
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
162522
14
4000
1