https://bugzilla.wikimedia.org/show_bug.cgi?id=54927

--- Comment #2 from Arlo Breault <[email protected]> ---
The problem here is that the contents of that comment isn't matching this
regex,

  /^\{.*\}$/.test( content )

https://github.com/wikimedia/mediawiki-extensions-Parsoid/blob/master/js/lib/mediawiki.DOMPostProcessor.js#L95

It's not recognizing the last character as }. Taking content.charCodeAt(
content.length - 1 ) returns undefined. Probably because of the unicode
characters. Switching to something like,

  /^\{\"@type\"/.test( content )

seems to work but I'm interested to see where exactly things are going wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to