tweak class regex to include className

master
Brad Cornes 2018-08-21 11:56:37 +01:00
parent 7c39412f57
commit c063e3f17e
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class TailwindIntellisense {
) )
const text1: string = document.getText(range1) const text1: string = document.getText(range1)
if (!/class=['"][^'"]*$/.test(text1)) return if (!/\bclass(Name)?=['"][^'"]*$/.test(text1)) return
const range2: vscode.Range = new vscode.Range( const range2: vscode.Range = new vscode.Range(
new vscode.Position(Math.max(position.line - 5, 0), 0), new vscode.Position(Math.max(position.line - 5, 0), 0),