mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-07 03:48:01 +02:00
refactor: clean up TODO comments (#6399)
This commit is contained in:
parent
1d7827d572
commit
6c0da3ee4b
10 changed files with 21 additions and 27 deletions
|
@ -62,9 +62,7 @@ export function shouldQuotifyFrontMatter([key, value]: [
|
|||
if (String(value).match(/^("|').+("|')$/)) {
|
||||
return false;
|
||||
}
|
||||
// TODO weird graymatter case
|
||||
// title: !something need quotes
|
||||
// but not title: something!
|
||||
// title: !something needs quotes because otherwise it's a YAML tag.
|
||||
if (!String(value).trim().match(/^\w.*/)) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue