mediawiki-title
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -144,3 +144,3 @@ "use strict"; | ||
/** | ||
* Get the canonical name string for this namespace. | ||
* Get the normalized localized name string for this namespace. | ||
* | ||
@@ -156,2 +156,11 @@ * @returns {string} | ||
/** | ||
* Get the canonical non-localized name string for this namespace. | ||
* | ||
* @returns {string} | ||
*/ | ||
Namespace.prototype.getCanonicalText = function() { | ||
return this._siteInfo.namespaces[this._id + ''].canonical.replace(/ /g, '_'); | ||
}; | ||
/** | ||
* Are subpages allowed for this namespace? | ||
@@ -158,0 +167,0 @@ * |
{ | ||
"name": "mediawiki-title", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Title normalization library for mediawiki", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
44098
900