mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-17 04:41:32 +01:00
Fix newline parsing in StringFlag.
This was committed broken 7 years ago and no one told us til today.
This commit is contained in:
parent
f8e129f33e
commit
96e7c43f56
@ -56,7 +56,7 @@ public String getDefault() {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String parseInput(FlagContext context) throws InvalidFlagFormat {
|
public String parseInput(FlagContext context) throws InvalidFlagFormat {
|
||||||
return context.getUserInput().replaceAll("(?!\\\\)\\\\n", "\n").replaceAll("\\\\\\\\n", "\\n");
|
return context.getUserInput().replaceAll("(?!<\\\\)\\\\n", "\n").replaceAll("\\\\\\\\n", "\\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user