feat: add tags workflow

This commit is contained in:
2026-07-16 03:34:23 +05:00
parent 7c0584707a
commit 6eedfb2bc5
29 changed files with 1153 additions and 22 deletions
+11
View File
@@ -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);
}