summaryrefslogtreecommitdiff
path: root/formatter/generic/genericformatter.cpp
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-09-24 22:12:38 -0400
committerJosh Ferrell <josh@vector35.com>2025-09-24 22:12:38 -0400
commit0deeb4a61749737b98f7946ec88b693068180e28 (patch)
tree6dc0ca1beb056d777f9d407c5214d92e3edd8f8e /formatter/generic/genericformatter.cpp
parent0af8344992572b553ed3a423e38373140ead5bf4 (diff)
Fix line formatting of unicode strings
Diffstat (limited to 'formatter/generic/genericformatter.cpp')
-rw-r--r--formatter/generic/genericformatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter/generic/genericformatter.cpp b/formatter/generic/genericformatter.cpp
index e73a630a..4cd1637e 100644
--- a/formatter/generic/genericformatter.cpp
+++ b/formatter/generic/genericformatter.cpp
@@ -967,7 +967,7 @@ vector<DisassemblyTextLine> GenericLineFormatter::FormatLines(
{
case BraceToken:
// Beginning of string
- if (trimmedText == "\"" && tokenIndex + 1 < currentLine.tokens.size() && currentLine.tokens[tokenIndex + 1].type == StringToken)
+ if (trimmedText.ends_with('"') && tokenIndex + 1 < currentLine.tokens.size() && currentLine.tokens[tokenIndex + 1].type == StringToken)
{
// Create a ContainerContents item and place it onto the item stack. This will hold anything
// inside the container once the end of the container is found.