mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 00:04:59 +08:00

This changes from providing a string literal for the #sub replacement, to providing a block. Because the block is provided the match object, it is presumed to have already performed all necessary backreferences. This avoids any replacement of backreferences in the message body.