Add skip statements to all strings

This commit is contained in:
Zachary Yedidia
2017-03-29 09:45:16 -04:00
parent a517ea45bd
commit 47ef864295
51 changed files with 135 additions and 52 deletions

View File

@@ -75,7 +75,7 @@ func findIndex(regex *regexp.Regexp, skip *regexp.Regexp, str []rune, canMatchSt
var strbytes []byte
if skip != nil {
strbytes = skip.ReplaceAllFunc(strbytes, func(match []byte) []byte {
strbytes = skip.ReplaceAllFunc([]byte(string(str)), func(match []byte) []byte {
res := make([]byte, utf8.RuneCount(match))
return res
})

File diff suppressed because one or more lines are too long