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

mediawiki-title

Package Overview
Dependencies
Maintainers
4
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.5.5 to 0.5.6

9

lib/index.js

@@ -204,3 +204,9 @@ "use strict";

} else if (!/^[A-Z]/.test(result.title)) {
result.title = result.title.substr(0, 1).toUpperCase() + result.title.substr(1);
var firstCharacter = result.title.charAt(0);
var upperCasedFirstLetter = firstCharacter.toUpperCase();
// PHP is only capable of upper-casing letters that end up
// as a single character, however JS upper-cases German 'ß' to SS
if (upperCasedFirstLetter.length === firstCharacter.length) {
result.title = upperCasedFirstLetter + result.title.substr(1);
}
}

@@ -211,3 +217,2 @@ }

function _splitNamespace(title, siteInfo, defaultNs) {

@@ -214,0 +219,0 @@ var prefixRegex = /^(.+?)_*:_*(.*)$/;

{
"name": "mediawiki-title",
"version": "0.5.5",
"version": "0.5.6",
"description": "Title normalization library for mediawiki",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -154,2 +154,3 @@ 'use strict';

[ 'en.wikipedia.org', ':_Test_', 'Test'],
[ 'en.wikipedia.org', '💩', '💩'],
[ 'en.wikipedia.org', 'Foo:bar', 'Foo:bar'],

@@ -192,4 +193,54 @@ [ 'en.wikipedia.org', 'Talk: foo', 'Talk:Foo'],

'list of Neighbours characters (2016)#Tom Quill',
'List_of_Neighbours_characters_(2016)']
'List_of_Neighbours_characters_(2016)'],
[ 'en.wikipedia.org', 'ß', 'ß' ],
[ 'en.wikipedia.org', 'ʼn', 'ʼn' ],
[ 'en.wikipedia.org', 'ǰ', 'ǰ' ],
[ 'en.wikipedia.org', 'ΐ', 'ΐ' ],
[ 'en.wikipedia.org', 'ΰ', 'ΰ' ],
[ 'en.wikipedia.org', 'և', 'և' ],
[ 'en.wikipedia.org', 'ẖ', 'ẖ' ],
[ 'en.wikipedia.org', 'ẗ', 'ẗ' ],
[ 'en.wikipedia.org', 'ẘ', 'ẘ' ],
[ 'en.wikipedia.org', 'ẙ', 'ẙ' ],
[ 'en.wikipedia.org', 'ẚ', 'ẚ' ],
[ 'en.wikipedia.org', 'ὐ', 'ὐ' ],
[ 'en.wikipedia.org', 'ὒ', 'ὒ' ],
[ 'en.wikipedia.org', 'ὔ', 'ὔ' ],
[ 'en.wikipedia.org', 'ὖ', 'ὖ' ],
[ 'en.wikipedia.org', 'ᾀ', 'ᾀ' ],
[ 'en.wikipedia.org', 'ᾁ', 'ᾁ' ],
[ 'en.wikipedia.org', 'ᾂ', 'ᾂ' ],
[ 'en.wikipedia.org', 'ᾃ', 'ᾃ' ],
[ 'en.wikipedia.org', 'ᾄ', 'ᾄ' ],
[ 'en.wikipedia.org', 'ᾅ', 'ᾅ' ],
[ 'en.wikipedia.org', 'ᾆ', 'ᾆ' ],
[ 'en.wikipedia.org', 'ᾇ', 'ᾇ' ],
[ 'en.wikipedia.org', 'ᾐ', 'ᾐ' ],
[ 'en.wikipedia.org', 'ᾑ', 'ᾑ' ],
[ 'en.wikipedia.org', 'ᾒ', 'ᾒ' ],
[ 'en.wikipedia.org', 'ᾓ', 'ᾓ' ],
[ 'en.wikipedia.org', 'ᾔ', 'ᾔ' ],
[ 'en.wikipedia.org', 'ᾕ', 'ᾕ' ],
[ 'en.wikipedia.org', 'ᾖ', 'ᾖ' ],
[ 'en.wikipedia.org', 'ᾗ', 'ᾗ' ],
[ 'en.wikipedia.org', 'ᾠ', 'ᾠ' ],
[ 'en.wikipedia.org', 'ᾡ', 'ᾡ' ],
[ 'en.wikipedia.org', 'ᾢ', 'ᾢ' ],
[ 'en.wikipedia.org', 'ᾣ', 'ᾣ' ],
[ 'en.wikipedia.org', 'ᾤ', 'ᾤ' ],
[ 'en.wikipedia.org', 'ᾥ', 'ᾥ' ],
[ 'en.wikipedia.org', 'ᾦ', 'ᾦ' ],
[ 'en.wikipedia.org', 'ᾧ', 'ᾧ' ],
[ 'en.wikipedia.org', 'ff', 'ff' ],
[ 'en.wikipedia.org', 'fi', 'fi' ],
[ 'en.wikipedia.org', 'fl', 'fl' ],
[ 'en.wikipedia.org', 'ffi', 'ffi' ],
[ 'en.wikipedia.org', 'ffl', 'ffl' ],
[ 'en.wikipedia.org', 'ſt', 'ſt' ],
[ 'en.wikipedia.org', 'st', 'st' ],
[ 'en.wikipedia.org', 'ﬓ', 'ﬓ' ],
[ 'en.wikipedia.org', 'ﬔ', 'ﬔ' ],
[ 'en.wikipedia.org', 'ﬕ', 'ﬕ' ],
[ 'en.wikipedia.org', 'ﬖ', 'ﬖ' ],
[ 'en.wikipedia.org', 'ﬗ', 'ﬗ' ]
];

@@ -196,0 +247,0 @@

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