mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-07-05 11:14:41 +02:00
Quote replacement string.
This commit is contained in:
parent
f71ed90b04
commit
4e650ec7bf
|
@ -286,7 +286,7 @@ public final class Reflection {
|
||||||
// Assume the expanded variables are all packages, and append a dot
|
// Assume the expanded variables are all packages, and append a dot
|
||||||
if (replacement.length() > 0 && matcher.end() < name.length() && name.charAt(matcher.end()) != '.')
|
if (replacement.length() > 0 && matcher.end() < name.length() && name.charAt(matcher.end()) != '.')
|
||||||
replacement += ".";
|
replacement += ".";
|
||||||
matcher.appendReplacement(output, replacement);
|
matcher.appendReplacement(output, Matcher.quoteReplacement(replacement));
|
||||||
}
|
}
|
||||||
matcher.appendTail(output);
|
matcher.appendTail(output);
|
||||||
return output.toString();
|
return output.toString();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user