From 2a22cbe41af6638d941c74d06cf210d22ecb3713 Mon Sep 17 00:00:00 2001 From: sekwah Date: Mon, 22 Jan 2018 21:56:10 +0000 Subject: [PATCH] Forgot about dollar symbol in regex --- src/com/sekwah/advancedportals/core/util/Lang.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/sekwah/advancedportals/core/util/Lang.java b/src/com/sekwah/advancedportals/core/util/Lang.java index 78092451..24af0397 100644 --- a/src/com/sekwah/advancedportals/core/util/Lang.java +++ b/src/com/sekwah/advancedportals/core/util/Lang.java @@ -43,7 +43,7 @@ public class Lang { String translation = instance.translate(s); for (int i = 1; i <= args.length; i++) { System.out.printf("Replace %s with %s%n", "%" + i + "$s", args[i-1].toString());; - translation = translation.replaceAll("%" + i + "$s", args[i-1].toString()); + translation = translation.replaceAll("%" + i + "\\$s", args[i-1].toString()); } return translation; } @@ -52,7 +52,7 @@ public class Lang { String translation = instance.translateColor(s); for (int i = 1; i <= args.length; i++) { System.out.printf("Replace %s with %s%n", "%" + i + "$s", args[i-1].toString());; - translation = translation.replaceAll("%" + i + "$s", args[i-1].toString()); + translation = translation.replaceAll("%" + i + "\\$s", args[i-1].toString()); } return translation; }