mediawiki-title
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -412,6 +412,4 @@ 'use strict'; | ||
title = title | ||
// 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, '') | ||
// Strip Unicode bidi override characters. | ||
.replace(/[\u200E\u200F\u202A-\u202E]/g, '') | ||
// Clean up whitespace | ||
@@ -418,0 +416,0 @@ .replace(/[ _\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+/g, '_') |
{ | ||
"name": "mediawiki-title", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Title normalization library for mediawiki", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -264,2 +264,2 @@ # mediawiki-title [![npm version](https://badge.fury.io/js/mediawiki-title.svg)](https://badge.fury.io/js/mediawiki-title) [![Build Status](https://travis-ci.org/wikimedia/mediawiki-title.svg?branch=master)](https://travis-ci.org/wikimedia/mediawiki-title) [![Coverage Status](https://coveralls.io/repos/github/wikimedia/mediawiki-title/badge.svg?branch=master)](https://coveralls.io/github/wikimedia/mediawiki-title?branch=master) [![Dependencies](https://david-dm.org/wikimedia/mediawiki-title.svg?branch=master)](https://david-dm.org/wikimedia/mediawiki-title?branch=master) | ||
For bug reporting please use [Phabricator](https://phabricator.wikimedia.org/tag/services/) | ||
and mark the bugs with `Services` label or contact directly in IRC in the [#wikimedia-services](http://webchat.freenode.net/?channels=wikimedia-services) channel. | ||
and mark the bugs with `Services` label or contact directly in IRC in the [#wikimedia-services](https://web.libera.chat/?channel=#wikimedia-services) channel. |
@@ -175,3 +175,2 @@ '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 | ||
@@ -178,0 +177,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
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
59152
12
1279