File tree 1 file changed +4
-4
lines changed
packages/tailwindcss-language-service/src/util
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,19 +133,19 @@ async function findCustomClassLists(
133
133
try {
134
134
let [ containerRegex , classRegex ] = Array . isArray ( regexes [ i ] ) ? regexes [ i ] : [ regexes [ i ] ]
135
135
136
- containerRegex = createMultiRegexp ( containerRegex )
136
+ let containerRegex2 = createMultiRegexp ( containerRegex )
137
137
let containerMatch
138
138
139
- while ( ( containerMatch = containerRegex . exec ( text ) ) !== null ) {
139
+ while ( ( containerMatch = containerRegex2 . exec ( text ) ) !== null ) {
140
140
const searchStart = doc . offsetAt ( range ?. start || { line : 0 , character : 0 } )
141
141
const matchStart = searchStart + containerMatch . start
142
142
const matchEnd = searchStart + containerMatch . end
143
143
144
144
if ( classRegex ) {
145
- classRegex = createMultiRegexp ( classRegex )
145
+ let classRegex2 = createMultiRegexp ( classRegex )
146
146
let classMatch
147
147
148
- while ( ( classMatch = classRegex . exec ( containerMatch . match ) ) !== null ) {
148
+ while ( ( classMatch = classRegex2 . exec ( containerMatch . match ) ) !== null ) {
149
149
const classMatchStart = matchStart + classMatch . start
150
150
const classMatchEnd = matchStart + classMatch . end
151
151
result . push ( {
You can’t perform that action at this time.
0 commit comments