Skip to content

Commit

Permalink
fix(cli): allow npm pkg name with dot
Browse files Browse the repository at this point in the history
  • Loading branch information
Genuifx committed Feb 19, 2020
1 parent 5f5ab21 commit 8d3af86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wxa-cli/src/helpers/pathParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import validUrl from 'valid-url';

export default class PathParser {
constructor() {
this.pkgReg = /^[@\w\_\-\d]+(\/[\w\-\_\d@\.]+)*$/;
this.pkgReg = /^[@\w\_\-\d\.]+(\/[\w\-\_\d@\.]+)*$/;
this.base64Reg = /^data:[\w\/;,+]/;
this.dynamicReg = /{{[^{}]*}}/;
}
Expand Down

0 comments on commit 8d3af86

Please sign in to comment.