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

Function getClassDeclarationRegex

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

Source from the content-addressed store, hash-verified

488 }
489
490 function getClassDeclarationRegex(filename) {
491 return new RegExp(`([^]*?class\\s+${filename.split('.')[0]}[\\s\\w]*{)([^]*})`, 'm');
492 }
493
494 function removeComments(content) {
495 return content.replace(/\/\*[^]*?\*\/|([^\\:]|^)\/\/.*$/gm, '');

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected