mirror of
https://github.com/vbatts/utils.git
synced 2024-12-04 14:35:41 +00:00
maybe TODO is the end of the line
This commit is contained in:
parent
b919fcc4f2
commit
3c5325283f
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ func main() {
|
|||
if strings.Contains(line, "TODO") {
|
||||
fmt.Printf("%s:%d\t%s\n", filepath.Base(match), count, strings.TrimRight(line, " \n"))
|
||||
trimmed := strings.TrimSpace(line)
|
||||
if strings.HasSuffix(trimmed, ":") {
|
||||
if strings.HasSuffix(trimmed, ":") || strings.HasSuffix(trimmed, "TODO") {
|
||||
i := strings.IndexRune(line, rune(trimmed[0]))
|
||||
for {
|
||||
buf, err := rdr.Peek(i + 1)
|
||||
|
|
Loading…
Reference in a new issue