diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-06-11 16:35:30 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-06-11 16:35:30 -0300 |
| commit | cc1a01870e287a756633e43b6f6d437434c4af32 (patch) | |
| tree | c9963cdd1f53764b90abe6bfa93098f219c30b42 /src/data/yaml.js | |
| parent | 52d3cbdc331c4d9ebf6d3f67d70a985b874818c0 (diff) | |
validators, yaml: URL OK!!
Diffstat (limited to 'src/data/yaml.js')
| -rw-r--r-- | src/data/yaml.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js index 15d7b0ba..f8591311 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -751,12 +751,22 @@ export function parseURLs(entries) { if (typeof item !== 'string') return item; - const match = item.match(extractAccentRegex); + let bypassValidation, restOfItem; + if (item.endsWith(' (URL OK!!)')) { + bypassValidation = true; + restOfItem = item.slice(0, -' (URL OK!!)'.length); + } else { + bypassValidation = false; + restOfItem = item; + } + + const match = restOfItem.match(extractAccentRegex); if (!match) return item; return { url: match.groups.main, annotation: match.groups.accent, + bypassValidation, }; }); } |