Skip to content

Commit b430376

Browse files
author
Chris Gerber
committed
Make newline detection platform independent
1 parent 527148c commit b430376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cssvarshim.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function readAFile(file) {
121121
//local css file data
122122
var file = rawFile.responseText;
123123
//split each line
124-
var lines = file.split('\r\n');
124+
var lines = file.split(/\r?\n/g);
125125
//informs us if we are within a section or on selectors
126126
var onGuts = false;
127127

0 commit comments

Comments
 (0)