1/** 2 * 3 * @param objectPath path to file 4 * @returns File extension without leading "." ("yml" or "yaml") 5 */ 6export const matchYamlExt = (objectPath: string) => 7 objectPath.match(/\.(ya?ml)$/)?.[1]; 8 9