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.4 to 0.5.5

2

lib/index.js

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

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