mediawiki-extensions-Discus.../modules
Bartosz Dziewoński 2d3fe47ac1 Fix parsing localised digits in PHP discussion parser
The PHP code incorrectly assumed that the digits are single-byte in
UTF-8, which is never the case (except for 0-9).

The JS code worked correctly because it uses UTF-16 strings, so the
bug would only affect non-BMP digits there. This was noted in a TODO
comment, but we overlooked it when reimplementing in PHP.

Instead of a string of 10 characters, use an array of 10
single-character strings.

Bug: T261706
Change-Id: Ic5421382474c88f003424799c53ff473d99cce92
2020-09-01 01:50:33 +02:00
..
dt-ve build: Update eslint-config-wikimedia to 0.17.0 2020-08-26 23:46:34 +01:00
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json eslint: Disable max-len 2020-04-21 15:50:19 +01:00
CommentController.js Pass through watchlist state to response data 2020-08-26 23:50:06 +01:00
CommentItem.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-26 23:46:34 +01:00
controller.js Fix error handling in controller#getPageData 2020-08-19 20:06:09 +00:00
dt.debug.js Refactor CommentParser 2020-07-20 23:38:10 +01:00
dt.init.js Refactor CommentParser 2020-07-20 23:38:10 +01:00
dt.init.less Do not include .dt-init-replylink-buttons in printouts 2020-08-10 17:55:08 +02:00
dt.ui.ReplyWidget.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-26 23:46:34 +01:00
dt.ui.ReplyWidget.less Allow reply widget header and footer to wrap when it's narrow 2020-08-07 20:25:23 +00:00
dt.ui.ReplyWidgetPlain.js Fix reply widget documentation 2020-08-19 20:05:55 +00:00
dt.ui.ReplyWidgetVisual.js Fix reply widget documentation 2020-08-19 20:05:55 +00:00
HeadingItem.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-26 23:46:34 +01:00
highlighter.css Fix highlighter styles: match sig/timestamps border sizes 2020-07-14 23:17:29 +01:00
highlighter.js Make getNativeRange a method of ThreadItem 2020-07-22 21:56:48 +01:00
logger.js VisualEditorFeatureUse: trackdebug logging consistent with EditAttemptStep 2020-07-20 17:26:53 -05:00
modifier.js Skip past our own reply buttons when displaying reply widget 2020-08-29 16:24:48 +02:00
Parser.js Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
ThreadItem.js parser: Fix comment ranges when timestamp has entities 2020-08-11 20:41:06 +02:00
utils.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-26 23:46:34 +01:00