We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9859a3a + 1c8d397 commit db6cd67Copy full SHA for db6cd67
build/lessToSass.js
@@ -69,7 +69,10 @@ function convertVariables(line) {
69
// Matches any @ that doesn't have 'media ' or 'import ' after it.
70
var atRegex = /@(?!(media|import|mixin|font-face|keyframes)(\s|\())/g;
71
72
- return line.replace(atRegex, '$');
+ // Matches any Sass variable line
73
+ var variableRegex = /^(\$[\w\d-_]+:\s*(.(?!\!default))+);(.*)$/gm;
74
+
75
+ return line.replace(atRegex, '$$').replace(variableRegex, '$1 !default;$3');
76
}
77
78
function convertFileExtensions(line) {
0 commit comments