summaryrefslogtreecommitdiffhomepage
path: root/tools/issue_reviver/reviver
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2020-08-14 16:21:29 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-14 16:23:34 -0700
commit3f523b3bbcf5ef7f37bb247bd4c5727711c70ba9 (patch)
tree0908ef59b37ed7d25a08f4a1810a91739da84332 /tools/issue_reviver/reviver
parentaf433e159dbf07b084c0f05e65ec646c056033a7 (diff)
Handle URLs better in issue reviver
- Handle urls ending in / - Add some url parsing tests PiperOrigin-RevId: 326750183
Diffstat (limited to 'tools/issue_reviver/reviver')
-rw-r--r--tools/issue_reviver/reviver/reviver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/issue_reviver/reviver/reviver.go b/tools/issue_reviver/reviver/reviver.go
index 682db0c01..2af7f0d59 100644
--- a/tools/issue_reviver/reviver/reviver.go
+++ b/tools/issue_reviver/reviver/reviver.go
@@ -26,7 +26,7 @@ import (
"sync"
)
-// This is how a TODO looks like.
+// regexTodo matches a TODO or FIXME comment.
var regexTodo = regexp.MustCompile(`(\/\/|#)\s*(TODO|FIXME)\(([a-zA-Z0-9.\/]+)\):\s*(.+)`)
// Bugger interface is called for every TODO found in the code. If it can handle