mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-27 03:53:06 +00:00
Clarify method name in QuotedStringTokenizer
This commit is contained in:
1 file changed
+3
-3
+3
-3
@@ -50,7 +50,7 @@ public class QuotedStringTokenizer {
|
||||
return output;
|
||||
}
|
||||
|
||||
private static boolean isQuotedStringStart(char c) {
|
||||
private static boolean isQuoteCharacter(char c) {
|
||||
// return c == '"' || c == '“' || c == '”';
|
||||
return c == '\u0022' || c == '\u201C' || c == '\u201D';
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public class QuotedStringTokenizer {
|
||||
}
|
||||
|
||||
private String readString() {
|
||||
if (isQuotedStringStart(peek())) {
|
||||
if (isQuoteCharacter(peek())) {
|
||||
return readQuotedString();
|
||||
} else {
|
||||
return readUnquotedString();
|
||||
@@ -85,7 +85,7 @@ public class QuotedStringTokenizer {
|
||||
skip(); // skip start quote
|
||||
|
||||
final int start = this.cursor;
|
||||
while (hasNext() && !isQuotedStringStart(peek())) {
|
||||
while (hasNext() && !isQuoteCharacter(peek())) {
|
||||
skip();
|
||||
}
|
||||
final int end = this.cursor;
|
||||
|
||||
Reference in new issue
Block a user