Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mediawiki-title

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mediawiki-title - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

.github/workflows/nodejs.yml

6

lib/index.js

@@ -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'],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc