diff --git a/tasks/converter/less_conversion.rb b/tasks/converter/less_conversion.rb index c6cd7e03de..0a7c50847a 100644 --- a/tasks/converter/less_conversion.rb +++ b/tasks/converter/less_conversion.rb @@ -173,6 +173,7 @@ def convert_to_scss(file) file = replace_calculation_semantics(file) file = replace_file_imports(file) file = wrap_at_groups_with_at_root(file) + file = replace_division(file) file end @@ -182,6 +183,26 @@ def wrap_at_groups_with_at_root(file) } end + # The `/` operator is not supported in dart-sass 1.33+, but + # sassc/libass do not support its replacement, `math.div()`. + def replace_division(less) + re = /(?