Knetic / govaluate

Arbitrary expression evaluation for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic trying to parse a single backslash

detunized opened this issue · comments

The library panics with a single backslash as the input:

govaluate.NewEvaluableExpression(`\`)
panic: runtime error: index out of range [1] with length 1 [recovered]
        panic: runtime error: index out of range [1] with length 1