Skip to content

Commit

Permalink
Added extra brackets
Browse files Browse the repository at this point in the history
Signed-off-by: MitchellGale-BitQuill <[email protected]>
  • Loading branch information
MitchellGale committed Dec 21, 2022
1 parent ab4c5e1 commit 7a3372e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public static String unquoteText(String text) {
for (int chIndex = 1; chIndex < text.length() - 1; chIndex++) {
currentChar = text.charAt(chIndex);
nextChar = text.charAt(chIndex + 1);
if (currentChar == enclosingQuote
&& nextChar == currentChar) {
if ((currentChar == enclosingQuote)
&& (nextChar == currentChar)) {
chIndex++;
}
textSB.append(currentChar);
Expand Down

0 comments on commit 7a3372e

Please sign in to comment.