Fixed bug in FileIssue constructor
This commit is contained in:
@ -11,7 +11,9 @@ public class FileIssue extends Issue {
|
||||
super('REPLACE_ME')
|
||||
|
||||
def matcher = file.name =~ /(\d{4})([bftc])(\d).*/
|
||||
if (!matcher) return null
|
||||
if (!matcher)
|
||||
throw new IllegalArgumentException("${file} " +
|
||||
"is not a valid Issue file.")
|
||||
|
||||
super.@id = matcher[0][1]
|
||||
super.@category = Category.toCategory(matcher[0][2])
|
||||
|
@ -21,7 +21,8 @@ class FileProject extends Project {
|
||||
|
||||
// otherwise build and add to list
|
||||
projects[(child.name)] = new FileProject(child)
|
||||
} else if (child.isFile()) {
|
||||
} else if (child.isFile() &&
|
||||
FileIssue.isValidFilename(child.name)) {
|
||||
def issue
|
||||
|
||||
// if exception, then not an issue
|
||||
|
Reference in New Issue
Block a user