MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getConstructorRegex

Function getConstructorRegex

hooks/modify-java-files.js:482–484  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

480 }
481
482 function getConstructorRegex(filename) {
483 return new RegExp(`([^]*?${filename.split('.')[0]}\\s*\\(.*?\\)\\s*{[^}]*})([^]*)`, 'm');
484 }
485
486 function getInterfaceDeclarationRegex(filename) {
487 return new RegExp(`([^]*?interface\\s+${filename.split('.')[0]}[\\s\\w]*{)([^]*})`, 'm');

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected