Skip to content

Commit f5bc8f7

Browse files
Update packages/@tailwindcss-upgrade/src/utils/hoist-static-glob-parts.ts
Co-authored-by: Philipp Spiess <[email protected]>
1 parent 29d6241 commit f5bc8f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@tailwindcss-upgrade/src/utils/hoist-static-glob-parts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ function splitPattern(pattern: string): [staticPart: string | null, dynamicPart:
5555

5656
let lastSlashPosition: number | null = null
5757

58-
for (let [i, c] of pattern.split('').entries()) {
58+
for (let i = 0; i < pattern.length; i++) {
59+
let c = pattern[i];
5960
if (c === '/') {
6061
lastSlashPosition = i
6162
}

0 commit comments

Comments
 (0)