Skip to content

Commit 30e1768

Browse files
committed
chore: lint
1 parent 829f4a8 commit 30e1768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
5252
if (!calleeName)
5353
return
5454
// check it starts with useScriptX where X must be a A-Z alphabetical letter
55-
const isValidCallee = calleeName === 'useScript' || (calleeName?.startsWith('useScript') && /^[A-Z]$/.test(calleeName?.charAt(9)) && !calleeName.startsWith('useScriptTrigger') && !calleeName.startsWith('useScriptEvent'))
55+
const isValidCallee = calleeName === 'useScript' || (calleeName?.startsWith('useScript') && /^[A-Z]$/.test(calleeName?.charAt(9)) && !calleeName.startsWith('useScriptTrigger') && !calleeName.startsWith('useScriptEvent'))
5656
if (
5757
_node.type === 'CallExpression'
5858
&& _node.callee.type === 'Identifier'

0 commit comments

Comments
 (0)