We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af8344 commit 0deeb4aCopy full SHA for 0deeb4a
formatter/generic/genericformatter.cpp
@@ -967,7 +967,7 @@ vector<DisassemblyTextLine> GenericLineFormatter::FormatLines(
967
{
968
case BraceToken:
969
// Beginning of string
970
- 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)
971
972
// Create a ContainerContents item and place it onto the item stack. This will hold anything
973
// inside the container once the end of the container is found.
0 commit comments