mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Update tree.js
in windows system,path sep is '\',the old regexp is not match it. I whrite a new regexp and fix it;
This commit is contained in:
@@ -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, '\\$&') +
|
||||
('file://' + ctx.debugInfo.fileName).replace(/([.:/\\])/g, function(a){if(a=='\\') a = '\/'; return '\\' + a}) +
|
||||
'}line{font-family:\\00003' + ctx.debugInfo.lineNumber + '}}\n';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user