icon: regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)
This commit is contained in:
parent
100f3a824d
commit
b2da0a8962
2 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue