Closed kirsle closed 7 years ago
Via @marceloverdijk on Slack:
https://github.com/aichaos/rivescript-go/blob/7f29a68d4cf2aa8ef7501717d24f3bb549f30fc0/src/tags.go#L81
This regexp is incorrect and should be patched as follows:
- pipes = strings.Replace(pipes, `(\d+?)`, `(?:\w+?)`, -1) + pipes = strings.Replace(pipes, `(\w+?)`, `(?:\w+?)`, -1)
And add a unit test that checks for wildcards in optionals like [_] and [#] for good measure.
[_]
[#]
Via @marceloverdijk on Slack:
https://github.com/aichaos/rivescript-go/blob/7f29a68d4cf2aa8ef7501717d24f3bb549f30fc0/src/tags.go#L81
This regexp is incorrect and should be patched as follows:
And add a unit test that checks for wildcards in optionals like
[_]
and[#]
for good measure.