Skip to content

Commit c362719

Browse files
committed
Match fullstop exactly
1 parent b3ceb28 commit c362719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class PostBuildPlugin {
4848
// - https://github.com/huggingface/transformers.js/issues/980
4949
// - https://github.com/huggingface/transformers.js/issues/1021
5050
// - https://github.com/huggingface/transformers.js/issues/1026
51-
new RegExp('new URL\\(["\'].\\\/["\'],\\s*import\\.meta\\.url\\)', 'gm'),
51+
new RegExp('new URL\\(["\']\\.\\\/["\'],\\s*import\\.meta\\.url\\)', 'gm'),
5252
"new URL(import.meta.url)",
5353
);
5454
fs.writeFileSync(filePath, content, 'utf8');

0 commit comments

Comments
 (0)