Fixed some Isses with rendering Icons

This commit is contained in:
Wofsauge committed 2020-11-29 21:43:20 +01:00
1 parent e32b32d46e
commit 16a59bd938
4 files changed
+28 -25

No files matched your search

+2 -2
View File
@@ -485,8 +485,8 @@ end
-- Returns the icon used for the bulletpoint. It will look at the first word in the given string.
function EID:handleBulletpointIcon(text)
local firstWord = string.match(text, "{{.-}}")
if EID:getIcon(firstWord) ~= EID.InlineIcons["ERROR"] then
local firstWord = string.match(text, "([^%s]+)")
if EID:getIcon(firstWord) ~= EID.InlineIcons["ERROR"] and string.find(firstWord, "{{.-}}")~=nil then
return firstWord
end
return "\007"