Skip to content

Commit

Permalink
Fixed issue bkaradzic#231.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Feb 5, 2020
1 parent af8a691 commit f48bd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f48bd19

Please sign in to comment.