mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-20 07:39:40 +00:00
Fix creating delimiter patterns
This commit is contained in:
1 file changed
+2
-1
@@ -55,7 +55,8 @@ public class Patterns {
|
||||
.build(new CacheLoader<Map.Entry<String, String>, String>() {
|
||||
@Override
|
||||
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());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user