Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 9, 2021
1 parent 8326219 commit c762d66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ export function matter(file, options = {}) {
var strip = options.strip
var yamlOptions = options.yaml || {}
var doc = String(file)
var match = /^---(?:\r?\n|\r)(?:([\s\S]*?)(?:\r?\n|\r))?---(?:\r?\n|\r|$)/.exec(
doc
)
var match =
/^---(?:\r?\n|\r)(?:([\s\S]*?)(?:\r?\n|\r))?---(?:\r?\n|\r|$)/.exec(doc)

if (match) {
file.data.matter = load(
Expand Down

0 comments on commit c762d66

Please sign in to comment.