diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -24,7 +24,7 @@ const optionsDefault = {
 
 const COMMENT_START = '<!--';
 const COMMENT_END = '-->';
-const COMMENT_CONTENT_REG = new RegExp(`${COMMENT_START}([\S\s]*?)${COMMENT_END}`, 'g');
+const COMMENT_CONTENT_REG = new RegExp(`${COMMENT_START}([\\S\\s]*?)${COMMENT_END}`, 'g');
 
 const nodeHasContent = (node, callback) => {
   if (
fix: escape character in regexp