mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Fix unescaped forward slash in regex. Fixes #1827
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, function (a) {
|
||||
('file://' + ctx.debugInfo.fileName).replace(/([.:\/\\])/g, function (a) {
|
||||
if (a == '\\') {
|
||||
a = '\/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user