Skip to content

Commit cfcd9b6

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: MarkX.get_FrontMatterType ( Fixes #87 )
Improving pattern for toml
1 parent f24b814 commit cfcd9b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎MarkX.types.ps1xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ switch ($this.FrontMatterType) {
12851285
#>
12861286

12871287
switch -regex ($this.FrontMatter) {
1288-
'(?m)^.+?=' {
1288+
'^[\s\r\n]{0,}(?>\[\w+|.+?=)' {
12891289
return 'toml'
12901290
}
12911291
$this.JavaScriptKeywordPattern {

0 commit comments

Comments
 (0)