icon: regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)

This commit is contained in:
bordun 2020-03-18 10:58:07 +01:00
parent 100f3a824d
commit b2da0a8962
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.49.11
- bug fixes
- regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)
## 0.49.10
- bug fixes

View file

@ -116,7 +116,7 @@ module.exports = {
return `<i class="fa fa-fw fa-${i}"></i>`
},
iconify:function(string){
return String(string).replace(/\^[^\s]{4,}/g,(x)=>{return module.exports.icon(x.substring(1))})
return String(string).replace(/\^[^\s]{2,}/g,(x)=>{return module.exports.icon(x.substring(1))})
},
upload: function(types, ok, error) {