autocomplete: fix completion of ai: metatag.
Fix it so we don't show the `ai:` prefix in front of results in the autocomplete menu when completing the `ai: metatag.
This commit is contained in:
@@ -256,7 +256,7 @@ class Tag < ApplicationRecord
|
||||
def split_words(name)
|
||||
return [name] if !parsable_into_words?(name)
|
||||
|
||||
name.split(WORD_DELIMITER_REGEX).compact_blank
|
||||
name.split(WORD_DELIMITER_REGEX).reject(&:empty?)
|
||||
end
|
||||
|
||||
# Parse the tag into plain words, removing punctuation and delimiters.
|
||||
|
||||
Reference in New Issue
Block a user