Skip to content

Commit

Permalink
fix: export
Browse files Browse the repository at this point in the history
Ref: #24
  • Loading branch information
SukkaW committed Jul 24, 2020
1 parent ca0700f commit 5946521
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/front_matter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function split(str) {
if (rPrefixSep.test(str)) return { content: str };

const matchNew = str.match(rFrontMatterNew);

if (matchNew) {
return {
data: matchNew[1],
Expand Down Expand Up @@ -173,9 +172,9 @@ function formatDate(date) {
return `${date.getFullYear()}-${doubleDigit(date.getMonth() + 1)}-${doubleDigit(date.getDate())} ${doubleDigit(date.getHours())}:${doubleDigit(date.getMinutes())}:${doubleDigit(date.getSeconds())}`;
}

module.exports = {
parse,
split,
escape: escapeYAML,
stringify
};
module.exports = parse;
exports = parse;
exports.parse = parse;
exports.split = split;
exports.escape = escapeYAML;
exports.stringify = stringify;

0 comments on commit 5946521

Please sign in to comment.