(formatId: string)
| 69 | * 用于手动指定格式时跳过嗅探 |
| 70 | */ |
| 71 | export function getFormatFeatureById(formatId: string): FormatFeature | null { |
| 72 | const all = sniffer.getSupportedFormats() |
| 73 | return all.find((f) => f.id === formatId) ?? null |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * 获取格式的预处理器(如果有) |
no test coverage detected