Skip to content

Commit e1ae134

Browse files
committed
Fix regex for detecting misspelled library.properties
The previous paucity of parentheses resulted in the regular expression matching against filenames it was never intended to, resulting in false positives for things like "library.json".
1 parent 385b1e8 commit e1ae134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: check/checkfunctions/library.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func MisspelledLibraryPropertiesFileName() (result checkresult.Type, output stri
6060
}
6161
directoryListing.FilterOutDirs()
6262

63-
path, found := containsMisspelledPathBaseName(directoryListing, "library.properties", "(?i)^librar(y)|(ie)s?[.-_]?propert(y)|(ie)s?$")
63+
path, found := containsMisspelledPathBaseName(directoryListing, "library.properties", "(?i)^librar((y)|(ie))s?[.-_]?propert((y)|(ie))s?$")
6464
if found {
6565
return checkresult.Fail, path.String()
6666
}

0 commit comments

Comments
 (0)