(path: string)
| 83 | } |
| 84 | |
| 85 | export function isFileOrResourcePath(path: string): boolean { |
| 86 | if (!types.isString(path)) { |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | return ( |
| 91 | path.indexOf('~/') === 0 || // relative to AppRoot |
| 92 | path.indexOf('/') === 0 || // absolute path |
| 93 | path.indexOf(RESOURCE_PREFIX) === 0 || |
| 94 | path.indexOf(SYSTEM_PREFIX) === 0 |
| 95 | ); // resource |
| 96 | } |
| 97 | |
| 98 | export function isFontIconURI(uri: string): boolean { |
| 99 | if (!types.isString(uri)) { |
no test coverage detected