Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glebm@google.com>2015-01-20 02:07:37 +0300
committerGleb Mazovetskiy <glebm@google.com>2015-01-20 02:07:37 +0300
commitdaeb43dcc7b0ab06328acaca0549ee68c039aaa6 (patch)
tree61b5da72b0af3fbb86a0969328d66c360743251b /tasks
parent13ac193b3195a8db0970427a018b4c8040e4a76b (diff)
Revert "Fix #803 by unquoting all UTF8 escapes"
This reverts commit 443d5b49eac84aec1cb2f8ea173554327bfc8c14. This "fix" breaks everything. Sorry!
Diffstat (limited to 'tasks')
-rw-r--r--tasks/converter/less_conversion.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/tasks/converter/less_conversion.rb b/tasks/converter/less_conversion.rb
index b530be47..ad668905 100644
--- a/tasks/converter/less_conversion.rb
+++ b/tasks/converter/less_conversion.rb
@@ -170,7 +170,6 @@ class Converter
file = deinterpolate_vararg_mixins(file)
file = replace_calculation_semantics(file)
file = replace_file_imports(file)
- file = unquote_utf8_escape_sequences(file)
file
end
@@ -315,12 +314,6 @@ SASS
%Q(@import "#{target_path}\\1";)
end
- # Unquote escape sequences, e.g. content: "#{$sep}\00a0" to content: #{$sep}\00a0
- # Works around Sass 3.4 issue: https://github.com/sass/sass/issues/1395
- def unquote_utf8_escape_sequences(scss)
- scss.gsub /\"((?:#\{[^}]+\})?\\[a-f0-9]{4,}?)\"/, '\1'
- end
-
def replace_all(file, regex, replacement = nil, &block)
log_transform regex, replacement
new_file = file.gsub(regex, replacement, &block)