Skip to content

Commit 0deeb4a

Browse files
committed
Fix line formatting of unicode strings
1 parent 0af8344 commit 0deeb4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

formatter/generic/genericformatter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ vector<DisassemblyTextLine> GenericLineFormatter::FormatLines(
967967
{
968968
case BraceToken:
969969
// Beginning of string
970-
if (trimmedText == "\"" && tokenIndex + 1 < currentLine.tokens.size() && currentLine.tokens[tokenIndex + 1].type == StringToken)
970+
if (trimmedText.ends_with('"') && tokenIndex + 1 < currentLine.tokens.size() && currentLine.tokens[tokenIndex + 1].type == StringToken)
971971
{
972972
// Create a ContainerContents item and place it onto the item stack. This will hold anything
973973
// inside the container once the end of the container is found.

0 commit comments

Comments
 (0)