Skip to content

Commit c771288

Browse files
committed
fixed multiline comments
fixed webpack-contrib#62 (. doesn't match newline)
1 parent b0c89eb commit c771288

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

lib/parseSource.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function extendsFromMatch(match, request) {
186186
var parser = new Parser({
187187
// shared stuff
188188
comments: {
189-
"/\\*.*?\\*/": true
189+
"/\\*[\\s\\S]*?\\*/": true
190190
},
191191
strings: {
192192
'"([^\\\\"]|\\\\.)*"': true,
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* a ' above
3+
*/
4+
5+
._bg_ {
6+
background-image: url({bg.jpg});
7+
}
8+
9+
/*
10+
* a ' below
11+
*/
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* a ' above
3+
*/
4+
5+
.bg {
6+
background-image: url(bg.jpg);
7+
}
8+
9+
/*
10+
* a ' below
11+
*/

0 commit comments

Comments
 (0)