GPJ2T6KIOWUI6YL7SR6NWVFQQ5B3KIUFAKYQ22VB72HKQR2377BAC
elseif edge.suffix and rfind(frag, edge.suffix, nil, --[[plain]] true) == #frag then
end
end
end
function switch_color_based_on_suffix(frag)
if Next_state[Current_state] == nil then
return
end
frag = rtrim(frag)
for _,edge in pairs(Next_state[Current_state]) do
if edge.suffix and rfind(frag, edge.suffix, nil, --[[plain]] true) == #frag then
function ltrim(s)
return s:gsub('^%s+', '')
end
function rtrim(s)
return s:gsub('%s+$', '')
end