2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

correct bbcode parsing edge case

This commit is contained in:
Sam 2017-07-20 13:02:31 -04:00
parent eb6c5a54ea
commit 1096dcd602
3 changed files with 15 additions and 12 deletions

View file

@ -167,7 +167,6 @@ export function setup(helper) {
ruler.push('url', {
tag: 'url',
wrap: function(startToken, endToken, tagInfo, content) {
const url = (tagInfo.attrs['_default'] || content).trim();
if (simpleUrlRegex.test(url)) {