GROOVY-7055: Groovysh: fix Hyphen checking breaking entering code
Merge pull request #509 from tkruse/groovy-7055

GROOVY-7055: Groovysh: fix Hyphen checking breaking entering code