diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuescript/yue_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index c79d58e..f530776 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
| @@ -705,8 +705,8 @@ namespace Utils { | |||
| 705 | 705 | ||
| 706 | void trim(std::string& str) { | 706 | void trim(std::string& str) { |
| 707 | if (str.empty()) return; | 707 | if (str.empty()) return; |
| 708 | str.erase(0, str.find_first_not_of(" \t\n")); | 708 | str.erase(0, str.find_first_not_of(" \t\r\n")); |
| 709 | str.erase(str.find_last_not_of(" \t\n") + 1); | 709 | str.erase(str.find_last_not_of(" \t\r\n") + 1); |
| 710 | } | 710 | } |
| 711 | } | 711 | } |
| 712 | 712 | ||
