Skip to content

Commit eeafa42

Browse files
authored
修复icon名称不支持下划线的问题 (#3744)
1 parent 8b2593e commit eeafa42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function _style(styles) {
131131

132132
function isValidIconName(str) {
133133
// prettier-ignore
134-
return getRegExp('^[A-Za-z0-9\-]+$').test(str);
134+
return getRegExp('^[A-Za-z0-9\-\_]+$').test(str);
135135
}
136136

137137
module.exports = {

0 commit comments

Comments
 (0)