We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac903ab commit b5e5929Copy full SHA for b5e5929
godot.go
@@ -49,8 +49,8 @@ var (
49
// Special tags in comments like "// nolint:", or "// +k8s:".
50
tags = regexp.MustCompile(`^\+?[a-z0-9]+:`)
51
52
- // Special hashtags in comments like "#nosec".
53
- hashtags = regexp.MustCompile("^#[a-z]+ ")
+ // Special hashtags in comments like "// #nosec".
+ hashtags = regexp.MustCompile(`^#[a-z]+($|\s)`)
54
55
// URL at the end of the line.
56
endURL = regexp.MustCompile(`[a-z]+://[^\s]+$`)
0 commit comments