diff options
| -rwxr-xr-x | sbolint | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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}); } |
