diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-02-16 16:26:06 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-02-16 16:26:06 -0400 |
| commit | 83d037e83fc5f7b8af3bb8b74b59e7accf0a2a42 (patch) | |
| tree | a648af9d4d029b1cb84e15d32320fd7adb821284 /src/data/yaml.js | |
| parent | ca486f58957a9d83cc1b9e14addfebb71f57d029 (diff) | |
data: "Reference By Directory" field with schnuance preview
Diffstat (limited to 'src/data/yaml.js')
| -rw-r--r-- | src/data/yaml.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js index 7ba6d559..0519986b 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -640,6 +640,16 @@ export function parseDuration(string) { } } +export function parseAlwaysReferenceByDirectory(value) { + if (value === true) { + return 'always'; + } else if (value === false) { + return 'normally'; + } else { + return value; + } +} + export const extractAccentRegex = /^(?<main>.*?)(?: \((?<accent>.*)\))?$/; |