sass-export
sass-export copied to clipboard
fix: filter out the comments of sass
过滤掉sass文件中的注释
- 使用getArray和getStructured时,发现被注释的内容也可以被解析。
- 固增加此段代码,过滤掉sass文件中的注释。
I'd add inline comment regex
/\/\/.*/g instead of
strContents = strContents.split(LINE_BREAK).filter(v=> v.indexOf('//') === -1).join(LINE_BREAK);