mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Auto-link URLs that are inside parentheses
This commit is contained in:
parent
4d58a00387
commit
9bbab6e64e
2 changed files with 10 additions and 1 deletions
|
@ -500,7 +500,7 @@ function invalidBoundary(args, prev) {
|
|||
|
||||
if (args.wordBoundary && (!last.match(/\W$/))) { return true; }
|
||||
if (args.spaceBoundary && (!last.match(/\s$/))) { return true; }
|
||||
if (args.spaceOrTagBoundary && (!last.match(/(\s|\>)$/))) { return true; }
|
||||
if (args.spaceOrTagBoundary && (!last.match(/(\s|\>|\()$/))) { return true; }
|
||||
}
|
||||
|
||||
function countLines(str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue