Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip mentions inside codeblocks #369

Merged

Conversation

Mark-Simulacrum
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum commented Feb 27, 2020

This replaces the regex-based mention parser with a more thorough implementation. Unfortunately, I wasn't able to find the precise algorithm GitHub uses for the mention syntax, and testing seemed inconclusive (at least, non-ASCII alphabetic characters have different results as a precursor to the @ sign than ASCII onces...)?

For now, go with a relatively simple (though plausibly wrong) set of characters allowed in usernames and a separate set of disallowed characters.

@Mark-Simulacrum Mark-Simulacrum merged commit 8532c3b into rust-lang:master Feb 27, 2020
@Mark-Simulacrum Mark-Simulacrum deleted the codeblock-mentions branch February 27, 2020 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant