Skip to content

Commit ac751ef

Browse files
committed
Optimze replace
(cherry picked from commit ed964b8)
1 parent f337214 commit ac751ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

currencyconvert.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
4848
Gson gson = new Gson();
4949
Recv st = gson.fromJson(str, Recv.class);
5050
String rhs = st.getRhs();
51-
rhs = rhs.replaceAll("�", "");
51+
rhs = rhs.replace("�", "");
5252

5353
/* Check if there are additional words (millions, billions, etc.) and print them */
5454
StringTokenizer strto = new StringTokenizer(rhs);

0 commit comments

Comments
 (0)