Skip to content

Commit 991cbd3

Browse files
author
Daniel Del Core
committed
fix string false positives in the worker files
1 parent a7c3aaf commit 991cbd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/lib/Worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function prepareJscodeshift(options) {
4747
}
4848

4949
function retrieveTransformId(str) {
50+
if (str.includes('#')) return false;
5051
return (str.match(/[^@]*(?:[@](?!.*[@]))(.*)$/) || [, ''])[1];
5152
}
5253
function retrievePresetId(str) {

0 commit comments

Comments
 (0)