diff --git a/utility/itemcomment/README.md b/utility/itemcomment/README.md index d9be997ef..fe8d09517 100644 --- a/utility/itemcomment/README.md +++ b/utility/itemcomment/README.md @@ -7,3 +7,6 @@ If you manually add any items, put a ! before `!items: 1234, 1235, 1236, 1237` The ! prefix makes the parser not replace the old line. + + +from root of projecteqquests dir: `go run utility/itemcomment/itemcomment.go` to regenerate \ No newline at end of file diff --git a/utility/itemcomment/itemcomment.go b/utility/itemcomment/itemcomment.go index 494f1f5d2..e07f34412 100644 --- a/utility/itemcomment/itemcomment.go +++ b/utility/itemcomment/itemcomment.go @@ -227,7 +227,7 @@ func findItems(line string, language string) []string { func findItemIDs(index int, line string) []string { items := []string{} - itemMatches := regNumbers.FindAllStringSubmatch(line[index:len(line)], -1) + itemMatches := regNumbers.FindAllStringSubmatch(line[index:], -1) for _, groups := range itemMatches { for _, match := range groups { id, err := strconv.Atoi(match)