fix icon name replacement regex

This commit is contained in:
bignutty 2025-01-17 23:37:56 +01:00
parent e8a425f39c
commit 0f7c2da09b

View file

@ -19,7 +19,7 @@ function _icon(icon){
if(ICONS[icon]) i = ICONS[icon];
if(ICONS_NEXTGEN[icon]) i = ICONS_NEXTGEN[icon];
return i.replace(/:[a-z1-9_]*:/, ':i:');
return i.replace(/:[a-z0-9_]*:/, ':i:');
}
// Ensures potentially user-provided content won't escape pill components