From 665b35691bf4b9592fb56623b62d3f019a893242 Mon Sep 17 00:00:00 2001 From: Frank Hernandez Date: Fri, 15 Apr 2016 10:30:12 -0400 Subject: [PATCH] Update hound.py fix error ValueError: too many values to unpack (expected 2) because or urls like [ssh://git@...] --- hound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hound.py b/hound.py index 248b4f2..41ac592 100644 --- a/hound.py +++ b/hound.py @@ -201,7 +201,7 @@ def run_(self, counter, args): row -= 1 line_region = self.view.line(self.view.text_point(row, col)) line = self.view.substr(line_region) - line_match = re.match(r"^\[/?(.*?)\]\s+(.*?):", line) + line_match = re.match(r"^\[.*?([^\/]*?\/[^\/]*?)(?=\])\]\s+(.*?):$", line) if line_match: (owner, repo) = line_match.group(1).split("/") filepath = line_match.group(2)