r107659 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107658‎ | r107659 | r107660 >
Date:21:51, 30 December 2011
Author:neilk
Status:deferred
Tags:
Comment:
fix substr for IE, followup r107464
Modified paths:
  • /trunk/extensions/VisualEditor/modules/parser/mediawiki.tokenizer.peg.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.tokenizer.peg.js
@@ -24,7 +24,7 @@
2525 }
2626
2727 // some normalization
28 - if ( text.substr(-1) !== "\n" ) {
 28+ if ( text.substring(text.length - 1) !== "\n" ) {
2929 text += "\n";
3030 }
3131

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107464remove need to add newline at end of inputneilk01:37, 28 December 2011

Status & tagging log