Skip to content

Commit

Permalink
Adjusted itemcomment README/warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery committed Feb 8, 2021
1 parent b8dc5b7 commit 0065931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions utility/itemcomment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion utility/itemcomment/itemcomment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0065931

Please sign in to comment.