front-matter
Advanced tools
Comparing version 0.1.3 to 0.1.4
13
index.js
@@ -17,17 +17,8 @@ var parser = require('yaml-js') | ||
function matcher(string, seperator){ | ||
if (process.platform === 'win32') | ||
var seperator = seperator || '---' | ||
, pattern = '^(' | ||
+ seperator | ||
+ '$([\\s\\S]*?)' | ||
+ seperator+'$\\r\\n)' | ||
, regex = new RegExp(pattern, 'm') | ||
, match = regex.exec(string) | ||
else | ||
var seperator = seperator || '---' | ||
var seperator = seperator || '---' | ||
, pattern = '^(' | ||
+ seperator | ||
+ '$([\\s\\S]*?)' | ||
+ seperator+'$\\n)' | ||
+ seperator+'$' + (process.platform === 'win32' ? '\\r?' : '') + '\\n)' | ||
, regex = new RegExp(pattern, 'm') | ||
@@ -34,0 +25,0 @@ , match = regex.exec(string) |
@@ -11,3 +11,3 @@ { | ||
"license": "MIT", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"homepage": "https://github.com/jxson/front-matter", | ||
@@ -14,0 +14,0 @@ "bugs": "https://github.com/jxson/front-matter/issues", |
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
11
8554
112