Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Sep 2, 2024
1 parent e3ac6cf commit 4cd6de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ namespace $ {
var priority = -indent[ 0 ].replace( /\t/g , ' ' ).length / 4

line.replace(
/\$([0-9]*[a-z])(?:((?:[\._A-Z0-9][a-z0-9]+)+)|\[\s*['"]([^'"]+?)['"]\s*\])?/g , ( str , pack , path , name )=> {
/\$([0-9]*[a-z][a-z0-9]*)(?:((?:[\._A-Z0-9][a-z0-9]+)+)|\[\s*['"]([^'"]+?)['"]\s*\])?/g , ( str , pack , path , name )=> {
if( path ) path = '/' + pack + path.replace( /(?=[A-Z])/g , '_' ).toLowerCase().replace( /[_.\[\]'"]+/g , '/' )
if( name ) name = '/' + pack + '/' + name
pack = '/' + pack
Expand Down

0 comments on commit 4cd6de4

Please sign in to comment.