You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example article containing many such links: James Thomson
Only the links not containing parentheses are rendered correctly, the others are rendered as plain text.
There could be some additional characters which also that prevent links from rendering, but parentheses are quite common in wiki titles as a disambiguation method.
The text was updated successfully, but these errors were encountered:
waldenn
changed the title
links containing parenthesis are not displayed as a link
links containing parentheses are not displayed as a link
Apr 30, 2020
ah, just took a look - it's that a \b wildcard doesn't like being beside the parentheses.
We may need to swap the \b in ./_lib/smartReplace.js with something like this:
(?<!\w)\(jadad\)(?!\w)
these look-beind regexes are not very-well supported yet.
Thanks, pity "look-behind" is still not supported both on Firefox and Safari. Maybe there are other ways of handling this bug in a special-case regexp replace function when parentheses are encountered? Have not looked at the code yet though.
Example article containing many such links: James Thomson
Only the links not containing parentheses are rendered correctly, the others are rendered as plain text.
There could be some additional characters which also that prevent links from rendering, but parentheses are quite common in wiki titles as a disambiguation method.
The text was updated successfully, but these errors were encountered: