Skip to content

Commit

Permalink
cut long line
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19244 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Oct 16, 2024
1 parent e666412 commit 99ee94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/openstreetmap/josm/tools/I18n.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ private enum PluralMode {

// Matches ISO-639 two and three letters language codes + scripts
private static final Pattern LANGUAGE_NAMES = Pattern.compile(
"name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT, BOPOMOFO) + ")))?");
"name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA,
LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT, BOPOMOFO) + ")))?");

private static String format(String text, Object... objects) {
if (objects.length == 0 && !text.contains("'")) {
Expand Down

0 comments on commit 99ee94a

Please sign in to comment.