1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

fix text filtering messing with tag expressions [ci skip]

This commit is contained in:
Earu 2022-04-23 14:32:29 +02:00
parent dc8241ad31
commit 21cba2b397

View File

@ -322,7 +322,6 @@ if CLIENT then
function EasyChat.FilterString(str)
local original_str = str
local _, original_count = str:gsub("%*", "*")
str = util.FilterText(ec_markup.GetText(str)) -- respect the Steam filter settings
@ -337,8 +336,7 @@ if CLIENT then
end)
end
local _, final_count = str:gsub("%*", "*")
if final_count ~= original_count then
if original_str ~= str then
return str
end