0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 19:52:41 +00:00

Lint fixes.

This commit is contained in:
G.Ambatte
2021-06-21 19:39:30 +12:00
parent 2613d43f3c
commit ad0e4a2099
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ const newBrew = (req, res)=>{
// Split out CSS to Style if CSS codefence exists // Split out CSS to Style if CSS codefence exists
if(brew.text.startsWith('```css') && brew.text.indexOf('```\n\n') > 0) { if(brew.text.startsWith('```css') && brew.text.indexOf('```\n\n') > 0) {
const index = brew.text.indexOf('```\n\n'); const index = brew.text.indexOf('```\n\n');
brew.style = `${brew.style ? brew.style + '\n' : ''}${brew.text.slice(7, index - 1)}`; brew.style = `${brew.style ? `${brew.style}\n` : ''}${brew.text.slice(7, index - 1)}`;
brew.text = brew.text.slice(index + 5); brew.text = brew.text.slice(index + 5);
}; };