diff options
| -rw-r--r-- | source/core/slang-string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 7c43ad647..6c0dec420 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -672,11 +672,11 @@ namespace Slang Index startIndex = 0; const char*const data = getData(); while (startIndex < getLength() && - (data[startIndex] == ' ' || data[startIndex] == '\t')) + (data[startIndex] == ' ' || data[startIndex] == '\t' || data[startIndex] == '\r' || data[startIndex] == '\n')) startIndex++; Index endIndex = getLength(); while (endIndex > startIndex && - (data[endIndex-1] == ' ' || data[endIndex-1] == '\t')) + (data[endIndex-1] == ' ' || data[endIndex-1] == '\t' || data[endIndex-1] == '\r' || data[endIndex-1] == '\n')) endIndex--; return StringSlice(m_buffer, startIndex, endIndex); |
