Skip to content

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Dec 31, 2025

Before

Screenshot 2025-12-31 at 23 44 19

After

Screenshot 2025-12-31 at 23 43 58

@st0012 st0012 added the bug label Dec 31, 2025
@matzbot
Copy link
Collaborator

matzbot commented Dec 31, 2025

🚀 Preview deployment available at: https://5767306a.rdoc-6cd.pages.dev (commit: bde3f30)

"_#{PROTECT_ATTR}_#{PROTECT_ATTR}\\1_#{PROTECT_ATTR}_#{PROTECT_ATTR}")
@str.gsub!(/(\A|[^\\])\\([#{Regexp.escape @protectable.join}])/m,
"\\1\\2#{PROTECT_ATTR}")
@str.gsub!(/\\(\\[#{Regexp.escape @protectable.join}])/m, "\\1")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of repeated regexp creation like this in this file. I think most of them can be extracted into ivars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants