The original regex is also not accurate (should be ^[A-Z]+$).
Signed-off-by: lolilolicon <[email protected]>
---
contrib/bacman.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/bacman.in b/contrib/bacman.in
index d43bf78..c69ab6f 100755
--- a/contrib/bacman.in
+++ b/contrib/bacman.in
@@ -143,7 +143,7 @@ while read i; do
continue
fi
- if [[ "$i" =~ %[A-Z]*% ]] ; then
+ if [[ "$i" == %+([A-Z])% ]] ; then
current=$i
continue
fi
@@ -199,7 +199,7 @@ while read i; do
continue;
fi
- if [[ "$i" =~ %[A-Z]*% ]] ; then
+ if [[ "$i" == %+([A-Z])% ]] ; then
current=$i
continue
fi
--
1.7.6.4