From d077c256594103e2d362a25b56ba3f9ed56f579f Mon Sep 17 00:00:00 2001 From: Juan Eugenio Abadie Date: Wed, 6 Nov 2019 22:46:24 -0300 Subject: [PATCH] Fix regex --- snip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snip.sh b/snip.sh index 1e1d2f9..928738a 100755 --- a/snip.sh +++ b/snip.sh @@ -25,7 +25,7 @@ __snip__get_snippet_fq_name() { fi local base_url - base_url=$(grep -Po "^(?<=base_url=).+" "$config_file") + base_url=$(grep -Po "(?<=^base_url=).+" "$config_file") if [ -z "$base_url" ]; then echo "Could not find 'base_url' setting in $config_file" >&2 return 1