front-matter
Advanced tools
Comparing version 0.2.2 to 0.2.3
const parser = require('yaml-js') | ||
const seperators = [ '---', '= yaml ='] | ||
const optionalByteOrderMark = '\\ufeff?' | ||
const pattern = '^(' | ||
+ optionalByteOrderMark | ||
+ '((= yaml =)|(---))' | ||
@@ -6,0 +8,0 @@ + '$([\\s\\S]*?)' |
@@ -11,3 +11,3 @@ { | ||
"license": "MIT", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"homepage": "https://github.com/jxson/front-matter", | ||
@@ -14,0 +14,0 @@ "bugs": "https://github.com/jxson/front-matter/issues", |
@@ -95,2 +95,15 @@ | ||
}) | ||
it('works on files with byte order mark', function(done){ | ||
read('bom.md', function(err, data){ | ||
if (err) return done(err) | ||
var content = fm(data) | ||
assert.ok(content.attributes) | ||
assert.equal(content.attributes.title, "Relax guy, I'm not hiding any BOMs") | ||
done() | ||
}) | ||
}) | ||
}) | ||
@@ -97,0 +110,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12056
13
116