summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-10-15 11:22:00 +0100
committerMichael Allen <michael@michaelallen.io>2015-10-15 11:22:00 +0100
commita2e156cc566ce7ad927eeb203a15aebf73617f2a (patch)
tree050373625f4a043b12d25038c679cf27917301ff
parent6c4678f6fcee69997bc72c532d349e6ef132794e (diff)
downloadgit-sonar-a2e156cc566ce7ad927eeb203a15aebf73617f2a.tar.gz
git-sonar-a2e156cc566ce7ad927eeb203a15aebf73617f2a.zip
Fix invalid regex found by @slackorama
-rwxr-xr-xradar-base.sh5
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\}}"