Skip to content

Commit 613b8a4

Browse files
authored
fix(core): correct bash @p prompt transformation detection (#13544)
1 parent 5982abe commit 613b8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/shell-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function hasPromptCommandTransform(root: Node): boolean {
271271
const transformNode = current.child(i + 1);
272272

273273
if (
274-
operatorNode?.type === '@' &&
274+
operatorNode?.text === '@' &&
275275
transformNode?.text?.toLowerCase() === 'p'
276276
) {
277277
return true;

0 commit comments

Comments
 (0)