allow https://example... in questionnaires as example links

This commit is contained in:
Grahame Grieve 2022-12-05 13:41:50 +11:00
parent a0c28f3326
commit 037b615bfc
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class QuestionnaireValidator extends BaseValidator {
if (questionnaireMode == QuestionnaireMode.REQUIRED) {
qok = rule(errors, NO_RULE_DATE, IssueType.REQUIRED, q.line(), q.col(), stack.getLiteralPath(), qsrc != null, I18nConstants.QUESTIONNAIRE_QR_Q_NOTFOUND, questionnaire);
ok = qok && ok;
} else if (questionnaire.startsWith("http://example.org")) {
} else if (questionnaire.startsWith("http://example.org") || questionnaire.startsWith("https://example.org")) {
qok = hint(errors, NO_RULE_DATE, IssueType.REQUIRED, q.line(), q.col(), stack.getLiteralPath(), qsrc != null, I18nConstants.QUESTIONNAIRE_QR_Q_NOTFOUND, questionnaire);
} else {
qok = warning(errors, NO_RULE_DATE, IssueType.REQUIRED, q.line(), q.col(), stack.getLiteralPath(), qsrc != null, I18nConstants.QUESTIONNAIRE_QR_Q_NOTFOUND, questionnaire);