@chialab/estransform
Advanced tools
Comparing version 0.11.8 to 0.11.10
@@ -61,3 +61,3 @@ import { Parser as AcornParser } from 'acorn'; | ||
export function parseComments(code) { | ||
const matches = code.match(/(\/\*[\w'\s\r\n*]*\*\/)|(\/\/[\w\s']*)/g); | ||
const matches = code.match(/\/\*[\s\S]*?\*\/|(?:[^\\:]|^)\/\/.*$/gm); | ||
if (!matches) { | ||
@@ -64,0 +64,0 @@ return []; |
{ | ||
"name": "@chialab/estransform", | ||
"type": "module", | ||
"version": "0.11.8", | ||
"version": "0.11.10", | ||
"description": "Execute multiple transformations on JavaScript sources with full sourcemaps support.", | ||
@@ -46,3 +46,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "c4e60500a376fc358091abeb9b2aa1c4957d5578" | ||
"gitHead": "4475da9b7503ad14fe9afd466cb42565b09add6c" | ||
} |