remark-custom-blocks
Advanced tools
Comparing version 2.3.3 to 2.4.0
@@ -22,3 +22,3 @@ "use strict"; | ||
function escapeRegExp(str) { | ||
return str.replace(/[-[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); | ||
return str.replace(new RegExp("[-[\\]{}()*+?.\\\\^$|/]", 'g'), '\\$&'); | ||
} | ||
@@ -25,0 +25,0 @@ |
{ | ||
"name": "remark-custom-blocks", | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"repository": { | ||
@@ -37,3 +37,3 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks", | ||
}, | ||
"gitHead": "7b61723ac4ca1900270d56c7787c08b6887fcb4c" | ||
"gitHead": "075b56a4c98b4500daa6a6ca0816af54b0e4a594" | ||
} |
const spaceSeparated = require('space-separated-tokens') | ||
function escapeRegExp (str) { | ||
return str.replace(/[-[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') | ||
return str.replace(new RegExp(`[-[\\]{}()*+?.\\\\^$|/]`, 'g'), '\\$&') | ||
} | ||
@@ -6,0 +6,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
17538