diff core/modules/locale/locale.bulk.js @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/modules/locale/locale.bulk.js	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/modules/locale/locale.bulk.js	Mon Apr 23 09:46:53 2018 +0100
@@ -12,7 +12,7 @@
       if ($form.length) {
         var $langcode = $form.find('.langcode-input');
         $form.find('.file-import-input').on('change', function () {
-          var matches = $(this).val().match(/([^.][\.]*)([\w-]+)\.po$/);
+          var matches = $(this).val().match(/([^.][.]*)([\w-]+)\.po$/);
           if (matches && $langcode.find('option[value="' + matches[2] + '"]').length) {
             $langcode.val(matches[2]);
           }