Skip to content

Commit 00b5aee

Browse files
committed
XEP-0001 validator: allow xxxx as number
1 parent 242d36e commit 00b5aee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/validate-xep0001-conformance.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ else
6161
validation_result=1
6262
fi
6363

64-
# 3.2 That the /xep/header/number/text() (XPath) is literally XXXX
65-
if [ "$header_number" = "XXXX" ]
64+
# 3.2 That the /xep/header/number/text() (XPath) is literally XXXX or xxxx
65+
if [ "$header_number" = "XXXX" ] || [ "$header_number" = "xxxx" ]
6666
then
67-
echo "[PASS] XPATH value /xep/header/number/text() ('$header_status') equals 'XXXX'."
67+
echo "[PASS] XPATH value /xep/header/number/text() ('$header_status') equals 'XXXX' (case insensitive)."
6868
else
6969
echo "[FAIL] XPATH value /xep/header/number/text() ('$header_status') does not equal 'XXXX' (but should)."
7070
validation_result=1

0 commit comments

Comments
 (0)