MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isCfmlTemplatePath

Function isCfmlTemplatePath

src/resolution/index.ts:5203–5205  ·  view source on GitHub ↗

* Whether a CFML `imports` name is the path of a template an include names * (`formlistshared.cfm`, `../shared/helpers.cfm`, `/app/x.cfm`), not a * cfscript `import com.foo.Bar;` or `import "java:…";` (#2651).

(name: string)

Source from the content-addressed store, hash-verified

5201 * cfscript `import com.foo.Bar;` or `import "java:…";` (#2651).
5202 */
5203function isCfmlTemplatePath(name: string): boolean {
5204 return !name.includes(':') && (name.includes('/') || name.includes('\\') || /\.(?:cfml?|cfc|cfs)$/i.test(name.trim()));
5205}
5206
5207/** The project-relative directory holding `p` ('' for the project root). */
5208function goDirOf(p: string): string {

Callers 1

resolveOneInnerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected