File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -65,20 +65,14 @@ namespace Sass {
65
65
Signature quote_sig = " quote($string)" ;
66
66
BUILT_IN (sass_quote)
67
67
{
68
- AST_Node_Obj arg = env[" $string" ];
69
- // only set quote mark to true if already a string
70
- if (String_Quoted* qstr = Cast<String_Quoted>(arg)) {
71
- qstr->quote_mark (' *' );
72
- return qstr;
73
- }
74
- // all other nodes must be converted to a string node
75
- std::string str (quote (arg->to_string (ctx.c_options ), ' "' ));
76
- String_Quoted* result = SASS_MEMORY_NEW (String_Quoted, pstate, str);
68
+ const String_Constant* s = ARG (" $string" , String_Constant);
69
+ String_Quoted *result = SASS_MEMORY_NEW (
70
+ String_Quoted, pstate, s->value (),
71
+ /* q=*/ ' \0 ' , /* keep_utf8_escapes=*/ false , /* skip_unquoting=*/ true );
77
72
result->quote_mark (' *' );
78
73
return result;
79
74
}
80
75
81
-
82
76
Signature str_length_sig = " str-length($string)" ;
83
77
BUILT_IN (str_length)
84
78
{
You can’t perform that action at this time.
0 commit comments