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.3 to 0.1.4

Makefile

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",

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