Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / locale / locale.bulk.es6.js
index 1d72a0bad7922baad382c6091a68ed52625457f7..4fe32c3470fa3ba22ff4910fc4c442ae9ea6ed6f 100644 (file)
@@ -23,7 +23,7 @@
           .on('change', function () {
             // If the filename is fully the language code or the filename
             // ends with a language code, pre-select that one.
-            const matches = $(this).val().match(/([^.][\.]*)([\w-]+)\.po$/);
+            const matches = $(this).val().match(/([^.][.]*)([\w-]+)\.po$/);
             if (matches && $langcode.find(`option[value="${matches[2]}"]`).length) {
               $langcode.val(matches[2]);
             }