chore: lint and format
522a496e
1 file(s) · +2 −1
| 18 | 18 | // --- (YAML) - Jekyll, Astro, most SSGs |
|
| 19 | 19 | // +++ (TOML) - Hugo |
|
| 20 | 20 | // *** - Alternative format |
|
| 21 | - | const frontmatterRegex = /^(---|\+\+\+|\*\*\*)\r?\n([\s\S]*?)\r?\n\1\r?\n([\s\S]*)$/; |
|
| 21 | + | const frontmatterRegex = |
|
| 22 | + | /^(---|\+\+\+|\*\*\*)\r?\n([\s\S]*?)\r?\n\1\r?\n([\s\S]*)$/; |
|
| 22 | 23 | const match = content.match(frontmatterRegex); |
|
| 23 | 24 | ||
| 24 | 25 | if (!match) { |