Fix unescaped forward slash in regex. Fixes #1827

This commit is contained in:
Luke Page
2014-02-01 18:25:03 +00:00
parent fa035ad5e9
commit 15af82848d

View File

@@ -24,7 +24,7 @@ tree.debugInfo.asComment = function(ctx) {
tree.debugInfo.asMediaQuery = function(ctx) {
return '@media -sass-debug-info{filename{font-family:' +
('file://' + ctx.debugInfo.fileName).replace(/([.:/\\])/g, function (a) {
('file://' + ctx.debugInfo.fileName).replace(/([.:\/\\])/g, function (a) {
if (a == '\\') {
a = '\/';
}