aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
authorsanmiguel <[email protected]>2016-12-09 20:56:42 +0100
committersanmiguel <[email protected]>2016-12-09 20:56:42 +0100
commite521d3be7c188e454eb987b776e9f91228f8df99 (patch)
tree7aaf01e667ff2e9efcb462f3ab4abcc41defa968 /kerl
parent56bccd050f89aff5002337a300e6c7feb6413b24 (diff)
downloadkerl-e521d3be7c188e454eb987b776e9f91228f8df99.tar.gz
kerl-e521d3be7c188e454eb987b776e9f91228f8df99.tar.bz2
kerl-e521d3be7c188e454eb987b776e9f91228f8df99.zip
Greatly simplify regex used
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerl b/kerl
index 98fb6f8..40e9f1f 100755
--- a/kerl
+++ b/kerl
@@ -375,7 +375,7 @@ do_git_build()
get_otp_version()
{
- echo $1 | sed $SED_OPT -e 's/R?([0-9]{1,2})[.AB]?[-.0-9rc]*(_[a-zA-Z0-9]*)?/\1/'
+ echo $1 | sed $SED_OPT -e 's/R?([0-9]{1,2}).+/\1/'
}
get_perl_version()