mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Apparently, our use of JavaScript string `.replace()` here was buggy, because replace() has several special escape sequences starting with `$` if they appear in the replacement content string. We can work around this through something of a hack, which is to pass a function as the second argument to replace, which seems cleaner than replacing all $s with $$s. Thanks to Shreya for the report.
2.8 KiB
2.8 KiB