feat: add tags workflow
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/** Quote a YAML scalar for a single-line frontmatter value. */
|
||||
export function yamlInlineScalar(value: string): string {
|
||||
if (value === "") {
|
||||
return '""';
|
||||
}
|
||||
// Safe unquoted token (no spaces / special YAML chars).
|
||||
if (/^[A-Za-z0-9_./+-]+$/.test(value)) {
|
||||
return value;
|
||||
}
|
||||
return JSON.stringify(value);
|
||||
}
|
||||
Reference in New Issue
Block a user