forked from mirror/Part-DB.Part-DB-server
Fix regex issue with newer node versions.
This commit is contained in:
parent
9cfd8a4cd3
commit
df6bf01e07
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ Encore
|
||||||
{
|
{
|
||||||
from: 'node_modules/bootswatch/dist/*/*.min.css',
|
from: 'node_modules/bootswatch/dist/*/*.min.css',
|
||||||
to({ context, absoluteFilename }) {
|
to({ context, absoluteFilename }) {
|
||||||
const regexp = /.*([\/\\])(.+)([\/\\]).*\.css$/;
|
const regexp = /.*([\/\\])(.+)([\/\\]).*\.css$/g;
|
||||||
const array = [...absoluteFilename.matchAll(regexp)];
|
const array = [...absoluteFilename.matchAll(regexp)];
|
||||||
return 'themes/'+array[0][2]+'[ext]';
|
return 'themes/'+array[0][2]+'[ext]';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue