mirror of https://github.com/mastodon/mastodon
Fix inefficiencies in auto-linking code (#16506)
The auto-linking code basically rewrote the whole string escaping non-ascii characters in an inefficient way, and building a full character offset map between the unescaped and escaped texts before sending the contents to TwitterText's extractor. Instead of doing that, this commit changes the TwitterText regexps to include valid IRI characters in addition to valid URI characters.pull/16507/head
parent
3dcf3f2a3a
commit
211d5c3c30
Loading…
Reference in New Issue