mirror of
https://github.com/seqizz/go-tools.git
synced 2024-09-07 10:50:30 +02:00
Typo
What a mess..
This commit is contained in:
parent
0197f67e75
commit
cc7702d5b7
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ func calculate(myMap map[string]int64, curLevel int, isDone bool, number int) (i
|
|||
func isSliceContainsRgx(slice []string, text string) bool {
|
||||
for _, a := range slice {
|
||||
a = strings.Replace(a, "(", "\\(", -1)
|
||||
a = strings.Replace(a, ")", "\\)", -1
|
||||
a = strings.Replace(a, ")", "\\)", -1)
|
||||
a = strings.Replace(a, "[", "\\[", -1)
|
||||
a = strings.Replace(a, "]", "\\]", -1)
|
||||
matched, _ := regexp.MatchString(a+".*", text)
|
||||
|
|
Loading…
Reference in a new issue