Java: Allow empty package name in model definitions.

This commit is contained in:
Michael Nebel
2022-11-22 13:56:29 +01:00
parent b96540c937
commit 74f02cf855

View File

@@ -549,7 +549,7 @@ module ModelValidation {
ext = "" and
pred = "negative summary"
|
not package.regexpMatch("[a-zA-Z0-9_\\.]+") and
not package.regexpMatch("[a-zA-Z0-9_\\.]*") and
result = "Dubious package \"" + package + "\" in " + pred + " model."
or
not type.regexpMatch("[a-zA-Z0-9_\\$<>]+") and