Fixed some Isses with rendering Icons
This commit is contained in:
1 parent
e32b32d46e
commit
16a59bd938
4 files changed
+28
-25
No files matched your search
+2
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user