mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-03 17:39:31 +01:00
Clarify method name in QuotedStringTokenizer
This commit is contained in:
parent
05b82cdbab
commit
46c9e3b713
@ -50,7 +50,7 @@ public class QuotedStringTokenizer {
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isQuotedStringStart(char c) {
|
private static boolean isQuoteCharacter(char c) {
|
||||||
// return c == '"' || c == '“' || c == '”';
|
// return c == '"' || c == '“' || c == '”';
|
||||||
return c == '\u0022' || c == '\u201C' || c == '\u201D';
|
return c == '\u0022' || c == '\u201C' || c == '\u201D';
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ public class QuotedStringTokenizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String readString() {
|
private String readString() {
|
||||||
if (isQuotedStringStart(peek())) {
|
if (isQuoteCharacter(peek())) {
|
||||||
return readQuotedString();
|
return readQuotedString();
|
||||||
} else {
|
} else {
|
||||||
return readUnquotedString();
|
return readUnquotedString();
|
||||||
@ -85,7 +85,7 @@ public class QuotedStringTokenizer {
|
|||||||
skip(); // skip start quote
|
skip(); // skip start quote
|
||||||
|
|
||||||
final int start = this.cursor;
|
final int start = this.cursor;
|
||||||
while (hasNext() && !isQuotedStringStart(peek())) {
|
while (hasNext() && !isQuoteCharacter(peek())) {
|
||||||
skip();
|
skip();
|
||||||
}
|
}
|
||||||
final int end = this.cursor;
|
final int end = this.cursor;
|
||||||
|
Loading…
Reference in New Issue
Block a user