aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbolint8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbolint b/sbolint
index db3535c..16b82f2 100755
--- a/sbolint
+++ b/sbolint
@@ -1221,10 +1221,18 @@ sub check_info {
log_error("$file: PRGNAM has invalid characters, only A-Z, a-z, 0-9, - + . _ are allowed");
}
+ if($info{REQUIRES} =~ /[^- +._A-Za-z0-9]/) {
+ log_error("$file: REQUIRES has invalid characters, only space, A-Z, a-z, 0-9, - + . _ are allowed");
+ }
+
if($info{VERSION} =~ /-/) {
log_error("$file: VERSION may not contain - (dash) characters");
}
+ if($info{VERSION} =~ / /) {
+ log_error("$file: VERSION may not contain whitespace");
+ }
+
if(!check_url($info{HOMEPAGE})) {
log_error("$file: HOMEPAGE=\"%s\" doesn't look like a valid URL (http, https, or ftp)", $info{HOMEPAGE});
}