mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-25 17:42:46 +02:00
full regeneration
This commit is contained in:
@@ -22,7 +22,7 @@ export default function performCodeSurgery(code) {
|
||||
// 3. rewrite all public GraphicsAPI functions to have the required `this.` prefix
|
||||
|
||||
GraphicsAPI.methods.forEach((fn) => {
|
||||
const re = new RegExp(`([({\\s\\r\\n])${fn}\\(`, `g`);
|
||||
const re = new RegExp(`([!({\\s\\r\\n])${fn}\\(`, `g`);
|
||||
code = code.replace(re, `$1this.${fn}(`);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user