aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-28 23:05:06 +0800
committercrupest <crupest@outlook.com>2020-12-28 23:05:06 +0800
commit7b6ca6e8a158868da316351b64e64ab1cdb5872c (patch)
tree29b9e58a396d43008fbb27fc6176ac1ed74d7e97 /src/common
parentfb280cc30e1012e18b47e43f783ddd4b33bf9d1c (diff)
downloadcru-7b6ca6e8a158868da316351b64e64ab1cdb5872c.tar.gz
cru-7b6ca6e8a158868da316351b64e64ab1cdb5872c.tar.bz2
cru-7b6ca6e8a158868da316351b64e64ab1cdb5872c.zip
...
Diffstat (limited to 'src/common')
-rw-r--r--src/common/StringUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/StringUtil.cpp b/src/common/StringUtil.cpp
index b13c0193..0cadc545 100644
--- a/src/common/StringUtil.cpp
+++ b/src/common/StringUtil.cpp
@@ -255,7 +255,7 @@ gsl::index Utf16ForwardUntil(std::u16string_view str, gsl::index position,
UnreachableCode();
}
-inline bool IsSpace(CodePoint c) { return c == 0x20; }
+inline bool IsSpace(CodePoint c) { return c == 0x20 || c == 0xA; }
gsl::index Utf16PreviousWord(std::u16string_view str, gsl::index position,
bool* is_space) {