Merge pull request #169 from lonevvolf/master

Fix for number at the end of a string
This commit is contained in:
Hieu Hoang 2016-12-23 09:50:57 +00:00 committed by GitHub
commit fc8829cdda

View File

@ -88,7 +88,7 @@ sub recognize {
$isRecognized = 0;
}
if ($end == length($input) -1 || substr($input, $end, 1) eq " ") {
if ($end == length($input) || substr($input, $end, 1) eq " ") {
# last word, or next char is a space
}
else {