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 @@
25
25
}
26
26
27
27
// some normalization
28
- if ( text.substr(-1) !== "\n" ) {
28
+ if ( text.substring(text.length - 1) !== "\n" ) {
29
29
text += "\n";
30
30
}
31
31
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r107464
remove need to add newline at end of input
neilk
01:37, 28 December 2011
Status & tagging log
17:31, 4 January 2012
Reedy
(
talk
|
contribs
)
changed the
status
of r107659
[
removed:
new
added:
deferred]