Skip to content

Commit 1ba8a05

Browse files
committed
Crossplatform grep
1 parent d743fbe commit 1ba8a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"pre-commit": "composer check-style",
5858
"pre-push": [
5959
"composer test",
60-
"appver=$(grep -o -P '\\d+\\.\\d+\\.\\d+(-alpha\\.\\d+)?' cghooks)",
60+
"appver=$(grep -o -E '[0-9]+\\.[0-9]+\\.[0-9]+(-alpha\\.[0-9]+)?' cghooks)",
6161
"tag=$(git tag | tail -n 1)",
6262
"if [ \"$tag\" != \"v$appver\" ]; then",
6363
"echo \"The most recent tag $tag does not match the application version $appver\\n\"",

0 commit comments

Comments
 (0)