Skip to content

Commit c7bc677

Browse files
author
Mike Richter
committed
Check varied lenght version numbers #15071
1 parent be9ba5e commit c7bc677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests/check-documentation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ verifyFails test -z "${NUMERIC_VERSION}"
3131
# Find all of the version numbers "x.y.z" in the document, and put them on separate lines.
3232
# The two lines that follow that have trailing backslashes are newlines embedded in the sed
3333
# replacement text, do not indent or otherwise alter.
34-
versionNumbers=$(cat "${README}" | sed -n 's,\([1-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*\),\
34+
versionNumbers=$(cat "${README}" | sed -n 's,\([1-9][0-9]*[.][0-9][0-9]*\([.][0-9][0-9]*\)*\),\
3535
\1\
36-
,pg' | grep '[1-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*')
36+
,pg' | grep '[1-9][0-9]*[.][0-9][0-9]*\([.][0-9][0-9]*\)*')
3737

3838
# Remove all of the instances of the expected version number
3939
badVersionNumbers="$(echo "${versionNumbers}" | grep -v "$(echo "^${NUMERIC_VERSION}\$" | sed 's,[.],[.],g')")"

0 commit comments

Comments
 (0)