Skip to content

Commit 2861135

Browse files
newnonminggo
authored andcommitted
fix nbsp (#18147)
1 parent 3886445 commit 2861135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/base/ccUTF8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static void trimUTF32VectorFromIndex(std::vector<char32_t>& str, int index)
140140
* */
141141
bool isUnicodeSpace(char32_t ch)
142142
{
143-
return (ch >= 0x0009 && ch <= 0x000D) || ch == 0x0020 || ch == 0x0085 || ch == 0x00A0 || ch == 0x1680
143+
return (ch >= 0x0009 && ch <= 0x000D) || ch == 0x0020 || ch == 0x0085 || ch == 0x1680
144144
|| (ch >= 0x2000 && ch <= 0x200A) || ch == 0x2028 || ch == 0x2029 || ch == 0x202F
145145
|| ch == 0x205F || ch == 0x3000;
146146
}

0 commit comments

Comments
 (0)