Skip to content

Commit

Permalink
IsLetDigの判定条件を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Jan 27, 2019
1 parent daeee1a commit 2c52d35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sakura_core/util/string_ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,8 @@ inline static bool IsLetDig(
_In_ const wchar_t ch
) noexcept
{
return ch <= 0xFF && ::isalnum( ch );
// コードポイントがASCII範囲、かつ、isalnumがtrueを返す場合にtrue.
return ch <= 0x7F && ::isalnum( ch );
}

/*
Expand Down

0 comments on commit 2c52d35

Please sign in to comment.