Skip to content

Commit 3baeb5b

Browse files
author
Laurynas Grigutis
committed
fix: matchClassFunctions isClassFn RegExp flags
1 parent 9f2f840 commit 3baeb5b

File tree

1 file changed

+1
-1
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+1
-1
lines changed

packages/tailwindcss-language-service/src/util/find.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function matchClassFunctions(text: string, fnNames: string[]): RegExpMatc
184184

185185
// 3. Match against the function names in the document
186186
let re = /^(NAMES)$/
187-
let isClassFn = new RegExp(re.source.replace('NAMES', names.join('|')), 'dgi')
187+
let isClassFn = new RegExp(re.source.replace('NAMES', names.join('|')), 'i')
188188

189189
let matches = foundFns.filter((fn) => isClassFn.test(fn[1]))
190190

0 commit comments

Comments
 (0)