mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
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',
|
||||
to({ context, absoluteFilename }) {
|
||||
const regexp = /.*([\/\\])(.+)([\/\\]).*\.css$/;
|
||||
const regexp = /.*([\/\\])(.+)([\/\\]).*\.css$/g;
|
||||
const array = [...absoluteFilename.matchAll(regexp)];
|
||||
return 'themes/'+array[0][2]+'[ext]';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue