Fixed issue #231.

This commit is contained in:
Бранимир Караџић
2020-02-04 22:43:35 -08:00
parent af8a6918b9
commit f48bd19bf8

View File

@@ -665,7 +665,7 @@ namespace bx
StringView ptr = strFind(_str, _word);
for (; !ptr.isEmpty(); ptr = strFind(StringView(ptr.getPtr() + len, _str.getTerm() ), _word) )
{
char ch = *(ptr.getPtr() - 1);
char ch = ptr.getPtr() != _str.getPtr() ? *(ptr.getPtr() - 1) : ' ';
if (isAlphaNum(ch) || '_' == ch)
{
continue;