Skip to content

Commit

Permalink
dash validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivojawer committed Jun 21, 2024
1 parent 4f1e216 commit fb67338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ sourceMapForNodeName)

export const shouldNotUseSpecialCharactersInName = error<Package>(node =>
!node.fileName ||
node.fileName.match(/([A-Za-z._/\d])/g)!.length === node.fileName.length
node.fileName.match(/([A-Za-z.\-_/\d])/g)!.length === node.fileName.length
&& node.fileName.match(/\./g)!.length === 1
, valuesForFileName,
sourceMapForNodeName)
Expand Down

0 comments on commit fb67338

Please sign in to comment.