Fix #5292: post edit tag_string - unquoted metatag value trailing escapes aren't parsed correctly when last term

This commit is contained in:
evazion
2022-10-12 19:33:19 -05:00
parent 49d0842f00
commit 0831b8dc9a
2 changed files with 26 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ class PostEdit
@post = post
@current_tag_names = current_tag_string.to_s.split
@old_tag_names = old_tag_string.to_s.split
@new_tag_string = new_tag_string.to_s.gsub(/[[:space:]]/, " ").strip
@new_tag_string = new_tag_string.to_s.gsub(/[[:space:]]/, " ")
@parser = StringParser.new(@new_tag_string)
end