mirror of
https://github.com/discourse/discourse.git
synced 2025-03-12 01:05:32 +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.