mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Prefer a regexp match over using String#replace to strip expected prefixes and suffixes because (a) it implicitly verifies that the input has the expected format and (b) it won’t unexpectedly strip from the middle of the string. Signed-off-by: Anders Kaseorg <anders@zulip.com>
19 KiB
19 KiB