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

Function getInterfaceDeclarationRegex

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

Source from the content-addressed store, hash-verified

484 }
485
486 function getInterfaceDeclarationRegex(filename) {
487 return new RegExp(`([^]*?interface\\s+${filename.split('.')[0]}[\\s\\w]*{)([^]*})`, 'm');
488 }
489
490 function getClassDeclarationRegex(filename) {
491 return new RegExp(`([^]*?class\\s+${filename.split('.')[0]}[\\s\\w]*{)([^]*})`, 'm');

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected