Autolinker.js
Autolinker.js copied to clipboard
fix: prevent linking text with directional change char
This PR would disable linking for urls with directional change characters
Fixes #377
Hmm, this isn't the worst idea, and is much better than stripping characters. It would mean however that people putting URLs in the middle of text in Arabic or Hebrew will not get linked URLs at all. (Not saying this isn't viable, but if this solution is accepted then at least a warning should be shown about this.)
Hey @yadue, I mentioned in #377 but should mention it here too: would you like to take a stab at URL-encoding the RTLO chars rather than rejecting the match? This might end up being our ideal solution. Thoughts?