add repl input bounds check (#638)
add repl input bounds check (#638)

* add repl input bounds check

* use bytes.Equal instead of Compare

* fix: use strings.HasPrefix to perform boundcheck on REPL input

This allows to keep most of the code unchanged and more readable.

Co-authored-by: Marc Vertes <267de7342f047d3c88dab4aba2687acc8b90dfc3@free.fr>
containous/yaegi