mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Capture workers with multiple words
This commit is contained in:
@@ -15,7 +15,7 @@ const JS_MINIFIER_CONFIG = {
|
||||
};
|
||||
|
||||
const workerRegEx =
|
||||
/new Worker\(\w+\.\w+\(new URL\(\w+\.\w+\+\w+\.\w+\(\d+\),\w+\.\w+\)\),\{name:"(\w+)"\}\)/;
|
||||
/new Worker\(\w+\.\w+\(new URL\(\w+\.\w+\+\w+\.\w+\(\d+\),\w+\.\w+\)\),\{name:"(.+)"\}\)/;
|
||||
|
||||
const inlineIndexWorkers = (code) => {
|
||||
const [, workerName] = code.match(workerRegEx) || [];
|
||||
|
||||
Reference in New Issue
Block a user