* 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)
| 4810 | * cfscript `import com.foo.Bar;` or `import "java:…";` (#2651). |
| 4811 | */ |
| 4812 | function isCfmlTemplatePath(name: string): boolean { |
| 4813 | return !name.includes(':') && (name.includes('/') || name.includes('\\') || /\.(?:cfml?|cfc|cfs)$/i.test(name.trim())); |
| 4814 | } |
| 4815 | |
| 4816 | /** The project-relative directory holding `p` ('' for the project root). */ |
| 4817 | function goDirOf(p: string): string { |