From 500fc196230516ae170585a4bffc2f2c2add6cd5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jul 20 2018 22:46:12 +0000 Subject: cargo-test: adjust regex to match multiple digits in version Signed-off-by: Igor Gnatenko --- diff --git a/cargo-test/runtest.sh b/cargo-test/runtest.sh index 390711a..0f8e852 100755 --- a/cargo-test/runtest.sh +++ b/cargo-test/runtest.sh @@ -6,7 +6,7 @@ dnf -y --best --nogpgcheck --repo="test-$pkg" install "$pkg-devel" provides=$(rpm -qP "$pkg-devel") while read -r prv; do - if [[ "$prv" =~ ^crate\(([^/]+)\)\ \=\ ([0-9]\.[0-9]\.[0-9]) ]]; then + if [[ "$prv" =~ ^crate\(([^/]+)\)\ \=\ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then crate="${BASH_REMATCH[1]}" version="${BASH_REMATCH[2]}" fi