Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

front-matter

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

front-matter - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

24

index.js

@@ -17,11 +17,21 @@ var parser = require('yaml-js')

function matcher(string, seperator){
var seperator = seperator || '---'
, pattern = '^('
+ seperator
+ '$([\\s\\S]*?)'
+ seperator+'$\\n)'
, regex = new RegExp(pattern, 'm')
, match = regex.exec(string)
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 || '---'
, pattern = '^('
+ seperator
+ '$([\\s\\S]*?)'
+ seperator+'$\\n)'
, regex = new RegExp(pattern, 'm')
, match = regex.exec(string)
if (match && match.length > 0) return match
}

@@ -7,3 +7,3 @@ {

"license": "MIT",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/jxson/front-matter",

@@ -10,0 +10,0 @@ "bugs": "https://github.com/jxson/front-matter/issues",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc