icon: regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)
This commit is contained in:
parent
4c97701e86
commit
b6ba68c03e
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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