User:DStoykov/defaultsort.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 5:
var sortkey = '';
// create an array of all category links
var catlinks = txt.value.match(/\[\[\s*(Category(C|KategorieK}at(e|Catégorieé)gor(y|Categoriai|Categoríaie|Категорияia|Categorieía|ija|io)|Кат(е|э)гори(я|ја|ія|ыя)|Luokka|KategoriFlokkur|Κατηγορία)\s*:.*\]\]/ig);
if (txt.value.match(/\{\{\s*defaultsort/i)) {
alert('There\'s already a defaultsort statement!');