diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index ee94115..cacb048 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -286,7 +286,9 @@ function isEnabled() { } const WEIGHT_REGEX = /[([]([^,()[\]:| ]+)(?::(?:\d+(?:\.\d+)?|\.\d+))?[)\]]/g; -const TAG_REGEX = /(<[^\t\n\r,>]+>?|[^\s,|<>]+|<)/g +const POINTY_REGEX = /<[^\s,<](?:[^\t\n\r,<>]*>|[^\t\n\r,> ]*)/g; +const NORMAL_TAG_REGEX = /[^\s,|<>]+|