demo-md-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -58,5 +58,5 @@ 'use strict'; | ||
const body = markdown.body; | ||
const codes = body.match(/```jsx\n+(\s*import\s+((\'.+\')|(\".+\"));?\s*\n+)*```\n*/g) || []; | ||
const codes = body.match(/```jsx(\r|\n)+\s*import\s+((\'.+\')|(\".+\"));?\s*(\r|\n)+```(\r|\n)*/g) || []; | ||
const codeFiles = codes.map(c => | ||
c.replace(/(```jsx\n+(\s*import\s+(\'|\")))|((\'|\");?\s*\n+)|(```\n*)/g, '') | ||
c.replace(/(```jsx(\r|\n)+\s*import\s+(\'|\"))|((\'|\");?\s*(\r|\n)+)|(```(\r|\n)*)/g, '') | ||
); | ||
@@ -63,0 +63,0 @@ return { |
{ | ||
"name": "demo-md-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Webpack loader that parses markdown files and converts them to a useful javascript object.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3970