summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/browse.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/browse.py b/src/browse.py
index 6bbf4de..bf4ff49 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -60,7 +60,9 @@ def parse(text):
outputs = []
try:
- target = next(lines)[:-1] # strip trailing colon
+ target = next(lines)
+ if target.endswith(':'):
+ target = target[:-1] # strip trailing colon
line = next(lines)
(match, rule) = match_strip(line, ' input: ')