mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix creating delimiter patterns
This commit is contained in:
parent
fd4963c74b
commit
2862f0dfae
@ -55,7 +55,8 @@ public class Patterns {
|
|||||||
.build(new CacheLoader<Map.Entry<String, String>, String>() {
|
.build(new CacheLoader<Map.Entry<String, String>, String>() {
|
||||||
@Override
|
@Override
|
||||||
public String load(Map.Entry<String, String> e) {
|
public String load(Map.Entry<String, String> e) {
|
||||||
return "(?<!" + Pattern.quote(e.getKey()) + ")" + Pattern.quote(e.getValue());
|
// note the reversed order
|
||||||
|
return "(?<!" + Pattern.quote(e.getValue()) + ")" + Pattern.quote(e.getKey());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user