Commit a38503dc authored by Alexander.Kirsanov's avatar Alexander.Kirsanov
Browse files

Quick fix for pattern validation

parent 8588b68a
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -11,6 +11,7 @@ import org.editorconfig.language.util.EditorConfigPsiTreeUtil.containsErrors
abstract class EditorConfigHeaderBase(node: ASTNode) : EditorConfigHeaderElementBase(node), EditorConfigHeader {
final override fun isValidGlob(): Boolean {
if (header.textMatches("[")) return false
if (containsErrors(header)) return false
if (EditorConfigEmptyHeaderInspection.containsIssue(header)) return false
if (EditorConfigNumerousWildcardsInspection.containsIssue(header)) return false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment