Skip to content

Commit 357390e

Browse files
committed
replace endsWidth
1 parent 2e210b0 commit 357390e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function appendItemToChain(
293293
if (!chain.includes(target)) {
294294
follow = true
295295
if (target) {
296-
follow = !target.endsWith('!')
296+
follow = target[target.length - 1] !== '!'
297297
const locale = target.replace(/!/g, '')
298298
chain.push(locale)
299299
if (

0 commit comments

Comments
 (0)