Fix regex issue with newer node versions.

This commit is contained in:
Jan Böhmer 2021-10-02 23:56:18 +02:00
parent 9cfd8a4cd3
commit df6bf01e07

View file

@ -110,7 +110,7 @@ Encore
{
from: 'node_modules/bootswatch/dist/*/*.min.css',
to({ context, absoluteFilename }) {
const regexp = /.*([\/\\])(.+)([\/\\]).*\.css$/;
const regexp = /.*([\/\\])(.+)([\/\\]).*\.css$/g;
const array = [...absoluteFilename.matchAll(regexp)];
return 'themes/'+array[0][2]+'[ext]';
}