Skip to content

Commit 9189ce1

Browse files
committed
fix: inconsistent capitalization - ignore short XML tags
1 parent d5b4054 commit 9189ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/inconsistent-capitalization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function registerListInconsistentCapitalizationCommand (context, outputCh
1818
return vscode.window.showErrorMessage('Unsupported Document Type.')
1919
}
2020

21-
const ignoreXmlTagsRgx = /<([ \t\S]+?)>/gi
21+
const ignoreXmlTagsRgx = /<([ \t\S]{2,}?)>/gi
2222
const ignoreNameTagTextRgx = /<name>(?<term>.+?)<\/name>/gi
2323
const ignoreAnchorPropTextRgx = /anchor="(?<term>.+?)"/gi
2424
const results = findInconsistentCapitalization(

0 commit comments

Comments
 (0)