express-compiless
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -14,3 +14,3 @@ var Path = require('path'), | ||
return '/*' + commentBody.replace(/@/g, ' ') + '*/'; | ||
}).replace(/\/\/[^\r\n]*/g, function ($0, commentBody) { | ||
}).replace(/\/\/([^\r\n]*)/g, function ($0, commentBody) { | ||
return '//' + commentBody.replace(/@/g, ' '); | ||
@@ -17,0 +17,0 @@ }); |
{ | ||
"name": "express-compiless", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Express middleware that compiles less files to css on the way out.", | ||
@@ -5,0 +5,0 @@ "main": "lib/compiless.js", |
@@ -36,3 +36,3 @@ var express = require('express'), | ||
request(baseUrl + '/stylesheet.less', passError(done, function (response, body) { | ||
expect(body).to.equal('.compilessinclude {background-image: url(imports/a.less); display: none;}\nbody {\n width: 100%;\n}\n#foo #bar {\n color: red;\n}\n'); | ||
expect(body).to.equal('.compilessinclude {background-image: url(imports/a.less); display: none;}\nbody {\n width: 100%;\n}\n#foo #bar {\n color: red;\n}\n/* multi-line\n comment\n*/\n'); | ||
expect(response.headers['content-type']).to.equal('text/css'); | ||
@@ -39,0 +39,0 @@ done(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19953