appease the linting gods
This commit is contained in:
parent
f98f07b765
commit
3e20a3b924
@ -3,9 +3,10 @@ package goparsify
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"os"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestSeq(t *testing.T) {
|
||||
|
@ -179,12 +179,12 @@ func parseMatcher(matcher string) (alphabet string, ranges [][]rune) {
|
||||
}
|
||||
i += 3 // we just consumed 3 bytes: range start, hyphen, and range end
|
||||
continue
|
||||
}else if i+1 < len(runes) && runes[i] == '\\' {
|
||||
} else if i+1 < len(runes) && runes[i] == '\\' {
|
||||
alphabet += string(runes[i+1])
|
||||
i += 2 // we just consumed 2 bytes: escape and the char
|
||||
} else {
|
||||
alphabet += string(runes[i])
|
||||
i +=1
|
||||
i++
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user