mediawiki-title
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -282,3 +282,3 @@ "use strict"; | ||
function _checkMaxLength(title, namespace) { | ||
var maxLength = !namespace.isSpecial() ? 255 : 512; | ||
var maxLength = namespace.isSpecial() ? 512 : 256; | ||
if (title.length > maxLength) { | ||
@@ -285,0 +285,0 @@ throw new utils.TitleError({ |
{ | ||
"name": "mediawiki-title", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Title normalization library for mediawiki", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -77,3 +77,3 @@ 'use strict'; | ||
// Length | ||
[ new Array(257).join('x'), 'title-invalid-too-long' ], | ||
[ new Array(258).join('x'), 'title-invalid-too-long' ], | ||
[ 'Special:' + new Array(514).join('x'), 'title-invalid-too-long' ], | ||
@@ -128,2 +128,3 @@ // Namespace prefix without actual title | ||
[ new Array(252).join('x') ], | ||
[ new Array(257).join('x') ], | ||
[ '-' ], | ||
@@ -130,0 +131,0 @@ [ 'aũ' ], |
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
45546
930