File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ const sameFn = i => i
1111const ionFn = i => `ionicons ${ i } `
1212
1313const libMap = {
14+ 'mdi-' : i => `mdi ${ i } ` ,
1415 'icon-' : sameFn , // fontawesome equiv
1516 'bt-' : i => `bt ${ i } ` ,
1617 'eva-' : i => `eva ${ i } ` ,
1718 'ion-md' : ionFn ,
1819 'ion-ios' : ionFn ,
1920 'ion-logo' : ionFn ,
20- 'mdi-' : i => `mdi ${ i } ` ,
2121 'iconfont ' : sameFn ,
2222 'ti-' : i => `themify-icon ${ i } ` ,
2323 'bi-' : i => `bootstrap-icons ${ i } `
@@ -35,8 +35,7 @@ const mRE = /^[Mm]\s?[-+]?\.?\d/
3535const imgRE = / ^ i m g : /
3636const svgUseRE = / ^ s v g u s e : /
3737const ionRE = / ^ i o n - /
38- const faLaRE = / ^ [ l f ] a [ s r l b d k ] ? /
39- const fa6RE = / ^ f a - ( s o l i d | r e g u l a r | l i g h t | b r a n d s | d u o t o n e | t h i n ) /
38+ const faRE = / ^ ( f a - ( s o l i d | r e g u l a r | l i g h t | b r a n d s | d u o t o n e | t h i n ) | [ l f ] a [ s r l b d k ] ? ) /
4039
4140export default createComponent ( {
4241 name : 'QIcon' ,
@@ -130,7 +129,7 @@ export default createComponent({
130129 if ( matches !== null ) {
131130 cls = libMap [ matches [ 1 ] ] ( icon )
132131 }
133- else if ( faLaRE . test ( icon ) === true || fa6RE . test ( icon ) === true ) {
132+ else if ( faRE . test ( icon ) === true ) {
134133 cls = icon
135134 }
136135 else if ( ionRE . test ( icon ) === true ) {
You can’t perform that action at this time.
0 commit comments