about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-10 21:02:18 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-10 14:02:18 +0200
commit63baab088d734a982d21a5df538db554091188ad (patch)
treeaedaeae1d19895de2977b53a532d171feed8a74f /config
parent2b9721d1b38319d70bed98e76a0fe1d648780298 (diff)
Fix regular expression for RFC 5646 (regression from #3604) (#4133)
Diffstat (limited to 'config')
-rw-r--r--config/webpack/translationRunner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack/translationRunner.js b/config/webpack/translationRunner.js
index 097099b48..d616c7839 100644
--- a/config/webpack/translationRunner.js
+++ b/config/webpack/translationRunner.js
@@ -2,7 +2,7 @@ const fs = require('fs');
 const path = require('path');
 const { default: manageTranslations } = require('react-intl-translations-manager');
 
-const RFC5646_REGEXP = /^[a-z]{2,3}(?:|[A-Z]+)$/;
+const RFC5646_REGEXP = /^[a-z]{2,3}(?:|-[A-Z]+)$/;
 
 const rootDirectory = path.resolve(__dirname, '..', '..');
 const translationsDirectory = path.resolve(rootDirectory, 'app', 'javascript', 'mastodon', 'locales');