Skip to content

Commit 55685f5

Browse files
committed
Remove unquoting for str_slice, str-insert and str-index
Fixes #2863
1 parent 68d3528 commit 55685f5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/fn_strings.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ namespace Sass {
102102
try {
103103
String_Constant* s = ARG("$string", String_Constant);
104104
str = s->value();
105-
str = unquote(str);
106105
String_Constant* i = ARG("$insert", String_Constant);
107106
std::string ins = i->value();
108-
ins = unquote(ins);
109107
double index = ARGVAL("$index");
110108
size_t len = UTF_8::code_point_count(str, 0, str.size());
111109

@@ -148,9 +146,7 @@ namespace Sass {
148146
String_Constant* s = ARG("$string", String_Constant);
149147
String_Constant* t = ARG("$substring", String_Constant);
150148
std::string str = s->value();
151-
str = unquote(str);
152149
std::string substr = t->value();
153-
substr = unquote(substr);
154150

155151
size_t c_index = str.find(substr);
156152
if(c_index == std::string::npos) {
@@ -175,7 +171,7 @@ namespace Sass {
175171
double end_at = ARGVAL("$end-at");
176172
String_Quoted* ss = Cast<String_Quoted>(s);
177173

178-
std::string str = unquote(s->value());
174+
std::string str(s->value());
179175

180176
size_t size = utf8::distance(str.begin(), str.end());
181177

0 commit comments

Comments
 (0)