Skip to content

Commit 54fed4a

Browse files
committed
more regexp
1 parent f7e0570 commit 54fed4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/sun/util/resources/LocaleData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public List<Locale> getCandidateLocales(String baseName, Locale locale) {
223223
Locale loc = l.next();
224224
String lstr;
225225
if (loc.getScript().length() > 0) {
226-
lstr = loc.toLanguageTag().replace('-', '_');
226+
lstr = loc.toLanguageTag().replaceAll("-","_");
227227
} else {
228228
lstr = loc.toString();
229229
int idx = lstr.indexOf("_#");

0 commit comments

Comments
 (0)