diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-15 11:22:00 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-15 11:22:00 +0100 |
commit | a2e156cc566ce7ad927eeb203a15aebf73617f2a (patch) | |
tree | 050373625f4a043b12d25038c679cf27917301ff | |
parent | 6c4678f6fcee69997bc72c532d349e6ef132794e (diff) | |
download | git-sonar-a2e156cc566ce7ad927eeb203a15aebf73617f2a.tar.gz git-sonar-a2e156cc566ce7ad927eeb203a15aebf73617f2a.zip |
Fix invalid regex found by @slackorama
-rwxr-xr-x | radar-base.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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\}}" |