File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
backend/src/main/java/com/park/utmstack/util Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 44import java .util .regex .Pattern ;
55
66public class UnicodeReplacer {
7- // Pattern to detect Unicode sequences like \u00E9
87 private static final Pattern UNICODE_PATTERN = Pattern .compile ("\\ \\ u([0-9A-Fa-f]{4})" );
98
109 /**
@@ -15,7 +14,7 @@ public class UnicodeReplacer {
1514 */
1615 public static String replaceUnicode (String input ) {
1716 Matcher matcher = UNICODE_PATTERN .matcher (input );
18- StringBuffer result = new StringBuffer ();
17+ StringBuilder result = new StringBuilder ();
1918
2019 while (matcher .find ()) {
2120 // Converts the Unicode sequence to its equivalent character
@@ -27,6 +26,4 @@ public static String replaceUnicode(String input) {
2726 matcher .appendTail (result );
2827 return result .toString ();
2928 }
30-
31- }
32-
29+ }
You can’t perform that action at this time.
0 commit comments