Skip to content

Commit a3b124a

Browse files
committed
Allow underscore in extended static files in theme
1 parent 81672a2 commit a3b124a

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/App/Utility

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/App/Utility/Files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ private function accumulateThemeStaticFiles($area, $locale, $filePattern, &$resu
936936
];
937937
$this->_accumulateFilesByPatterns($paths, $filePattern, $files);
938938
$regex = '#^' . $themePath .
939-
'/((?P<module>[a-z\d]+_[a-z\d]+)/)?web/(i18n/(?P<locale>[a-z_]+)/)?(?P<path>.+)$#i';
939+
'/((?P<module>[a-z\d]+_[a-z_\d]+)/)?web/(i18n/(?P<locale>[a-z_]+)/)?(?P<path>.+)$#i';
940940
foreach ($files as $file) {
941941
if (preg_match($regex, $file, $matches)) {
942942
$result[] = [

0 commit comments

Comments
 (0)