Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardLicenseInput.js |
— | — | @@ -484,6 +484,7 @@ |
485 | 485 | try { |
486 | 486 | ast = parser.wikiTextToAst( text ); |
487 | 487 | } catch (e) { |
| 488 | + mw.log( e.message ); |
488 | 489 | return false; |
489 | 490 | } |
490 | 491 | |
Index: trunk/extensions/UploadWizard/resources/mediawiki.language.parser.js |
— | — | @@ -372,7 +372,9 @@ |
373 | 373 | } |
374 | 374 | |
375 | 375 | var templateName = transform( |
376 | | - makeRegexParser( /^[A-Za-z][\w -]+/ ), |
| 376 | + // see $wgLegalTitleChars |
| 377 | + // not allowing : due to the need to catch "PLURAL:$1" |
| 378 | + makeRegexParser( /^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+-]+/ ), |
377 | 379 | function( result ) { return result.toString(); } |
378 | 380 | ); |
379 | 381 | |