From 00b5aee8168489a1020df32887d0ba38eb323f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 20 Dec 2022 19:31:09 +0100 Subject: [PATCH] XEP-0001 validator: allow xxxx as number --- tools/validate-xep0001-conformance.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/validate-xep0001-conformance.sh b/tools/validate-xep0001-conformance.sh index 79fcceb6..34c468f9 100755 --- a/tools/validate-xep0001-conformance.sh +++ b/tools/validate-xep0001-conformance.sh @@ -61,10 +61,10 @@ else validation_result=1 fi - # 3.2 That the /xep/header/number/text() (XPath) is literally XXXX - if [ "$header_number" = "XXXX" ] + # 3.2 That the /xep/header/number/text() (XPath) is literally XXXX or xxxx + if [ "$header_number" = "XXXX" ] || [ "$header_number" = "xxxx" ] then - echo "[PASS] XPATH value /xep/header/number/text() ('$header_status') equals 'XXXX'." + echo "[PASS] XPATH value /xep/header/number/text() ('$header_status') equals 'XXXX' (case insensitive)." else echo "[FAIL] XPATH value /xep/header/number/text() ('$header_status') does not equal 'XXXX' (but should)." validation_result=1