Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 6, 2024
1 parent 829f4a8 commit 30e1768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
if (!calleeName)
return
// check it starts with useScriptX where X must be a A-Z alphabetical letter
const isValidCallee = calleeName === 'useScript' || (calleeName?.startsWith('useScript') && /^[A-Z]$/.test(calleeName?.charAt(9)) && !calleeName.startsWith('useScriptTrigger') && !calleeName.startsWith('useScriptEvent'))
const isValidCallee = calleeName === 'useScript' || (calleeName?.startsWith('useScript') && /^[A-Z]$/.test(calleeName?.charAt(9)) && !calleeName.startsWith('useScriptTrigger') && !calleeName.startsWith('useScriptEvent'))
if (
_node.type === 'CallExpression'
&& _node.callee.type === 'Identifier'
Expand Down

0 comments on commit 30e1768

Please sign in to comment.