0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Merge branch 'master' into localSnippetEditor

This commit is contained in:
David Bolack
2024-12-04 21:31:10 -06:00
10 changed files with 264 additions and 142 deletions

View File

@@ -103,6 +103,9 @@ const splitTextStyleAndMetadata = (brew)=>{
brew.snippets = yamlSnippetsToText(yaml.load(brew.text.slice(11, index + 1))).slice(0, -1);
brew.text = brew.text.slice(index + 6);
}
// Handle old brews that still have empty strings in the tags metadata
if(typeof brew.tags === 'string') brew.tags = brew.tags ? [brew.tags] : [];
};
const printCurrentBrew = ()=>{