mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 12:12:22 -05:00
XEP-0001 validator: allow xxxx as number
This commit is contained in:
parent
242d36e65d
commit
00b5aee816
@ -61,10 +61,10 @@ else
|
|||||||
validation_result=1
|
validation_result=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 3.2 That the /xep/header/number/text() (XPath) is literally XXXX
|
# 3.2 That the /xep/header/number/text() (XPath) is literally XXXX or xxxx
|
||||||
if [ "$header_number" = "XXXX" ]
|
if [ "$header_number" = "XXXX" ] || [ "$header_number" = "xxxx" ]
|
||||||
then
|
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
|
else
|
||||||
echo "[FAIL] XPATH value /xep/header/number/text() ('$header_status') does not equal 'XXXX' (but should)."
|
echo "[FAIL] XPATH value /xep/header/number/text() ('$header_status') does not equal 'XXXX' (but should)."
|
||||||
validation_result=1
|
validation_result=1
|
||||||
|
Loading…
Reference in New Issue
Block a user