(value: string)
| 252 | |
| 253 | /** Basename of a vault path (drop folders + a trailing known extension). */ |
| 254 | export function fileBasenameFromPath(value: string): string { |
| 255 | const segment = value.split("/").pop() ?? value; |
| 256 | return segment.replace(/\.(md|canvas|base)$/i, ""); |
| 257 | } |
| 258 | |
| 259 | function scalarTitleValue(value: unknown): string | undefined { |
| 260 | return typeof value === "string" && value.trim().length > 0 |
no outgoing calls
no test coverage detected