2
0
Fork 0
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:
David McClure 2016-10-29 17:30:36 -07:00
parent 4d58a00387
commit 9bbab6e64e
2 changed files with 10 additions and 1 deletions

View file

@ -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) {