From 7ee6e2c58caf06cc6037cde9edd490238919a5e2 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Fri, 13 May 2022 09:24:47 +0200 Subject: [PATCH] :beetle: Fix regex --- src/Apparition.js | 2 +- src/BrokenGlass.js | 2 +- src/EnergizeA.js | 2 +- src/EnergizeB.js | 2 +- src/Fire.js | 2 +- src/Hexagon.js | 2 +- src/Matrix.js | 2 +- src/SnapOfDisintegration.js | 2 +- src/TRexAttack.js | 2 +- src/TVEffect.js | 2 +- src/Wisps.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Apparition.js b/src/Apparition.js index f2d61ea..a6d1b53 100644 --- a/src/Apparition.js +++ b/src/Apparition.js @@ -167,7 +167,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${Apparition.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/BrokenGlass.js b/src/BrokenGlass.js index 720faf2..b3d0787 100644 --- a/src/BrokenGlass.js +++ b/src/BrokenGlass.js @@ -204,7 +204,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${BrokenGlass.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/EnergizeA.js b/src/EnergizeA.js index 31765e9..40c4d79 100644 --- a/src/EnergizeA.js +++ b/src/EnergizeA.js @@ -155,7 +155,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${EnergizeA.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/EnergizeB.js b/src/EnergizeB.js index 3ca02bd..68abf74 100644 --- a/src/EnergizeB.js +++ b/src/EnergizeB.js @@ -155,7 +155,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${EnergizeB.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/Fire.js b/src/Fire.js index f6477b8..33429e7 100644 --- a/src/Fire.js +++ b/src/Fire.js @@ -282,7 +282,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${Fire.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/Hexagon.js b/src/Hexagon.js index d617b8e..7eb7a6a 100644 --- a/src/Hexagon.js +++ b/src/Hexagon.js @@ -174,7 +174,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${Hexagon.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/Matrix.js b/src/Matrix.js index 9ec177d..97dcbe6 100644 --- a/src/Matrix.js +++ b/src/Matrix.js @@ -186,7 +186,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${Matrix.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/SnapOfDisintegration.js b/src/SnapOfDisintegration.js index 8570ccb..b4500b2 100644 --- a/src/SnapOfDisintegration.js +++ b/src/SnapOfDisintegration.js @@ -181,7 +181,7 @@ if (utils.isInShellProcess()) { utils.loadGLSLResource(`/shaders/${SnapOfDisintegration.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/TRexAttack.js b/src/TRexAttack.js index 18e5083..2410ce1 100644 --- a/src/TRexAttack.js +++ b/src/TRexAttack.js @@ -182,7 +182,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${TRexAttack.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/TVEffect.js b/src/TVEffect.js index f05cf78..db03fba 100644 --- a/src/TVEffect.js +++ b/src/TVEffect.js @@ -151,7 +151,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${TVEffect.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index); diff --git a/src/Wisps.js b/src/Wisps.js index ad6a30a..65e2d17 100644 --- a/src/Wisps.js +++ b/src/Wisps.js @@ -161,7 +161,7 @@ if (utils.isInShellProcess()) { const code = utils.loadGLSLResource(`/shaders/${Wisps.getNick()}.glsl`); // Match anything between the curly brackets of "void main() {...}". - const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}', 'd'); + const regex = RegExp('void main *\\(\\) *\\{([\\S\\s]+)\\}'); const match = regex.exec(code); const declarations = code.substr(0, match.index);