Fix `InvalidTailwindDirective` in `notSemicolonLanguages` with CRLF file endings (#723)
* Fix InvalidTailwindDirective in notSemicolonLanguages with CRLF file endings * Fix regex --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>master
parent
5376ee1e7a
commit
3aafffefda
|
@ -35,7 +35,7 @@ export function getInvalidTailwindDirectiveDiagnostics(
|
||||||
(state.editor &&
|
(state.editor &&
|
||||||
notSemicolonLanguages.includes(state.editor.userLanguages[document.languageId]))
|
notSemicolonLanguages.includes(state.editor.userLanguages[document.languageId]))
|
||||||
) {
|
) {
|
||||||
regex = /(?:\s|^)@tailwind\s+(?<value>[^\n]+)/g
|
regex = /(?:\s|^)@tailwind\s+(?<value>[^\r\n]+)/g
|
||||||
} else {
|
} else {
|
||||||
regex = /(?:\s|^)@tailwind\s+(?<value>[^;]+)/g
|
regex = /(?:\s|^)@tailwind\s+(?<value>[^;]+)/g
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue