From a2e156cc566ce7ad927eeb203a15aebf73617f2a Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Thu, 15 Oct 2015 11:22:00 +0100 Subject: Fix invalid regex found by @slackorama --- radar-base.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'radar-base.sh') diff --git a/radar-base.sh b/radar-base.sh index 23e3dfd..4f5a483 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -502,8 +502,9 @@ render_prompt() { local_sed="" changes_sed="" - if_pre="%{([^%{}]{1,}:){0,1}" - if_post="(:[^%{}]{1,}){0,1}}" + + if_pre="%\{([^%{}]{1,}:){0,1}" + if_post="(:[^%{}]{1,}){0,1}\}" sed_pre="%{\(\([^%^{^}]*\)\:\)\{0,1\}" sed_post="\(\:\([^%^{^}]*\)\)\{0,1\}}" -- cgit v1.2.3