Allow unquote on all values
This commit is contained in:
parent
b31c9587bc
commit
f4c5fbae27
@ -60,9 +60,8 @@ pub(crate) fn parse_interpolation<I: Iterator<Item = Token>>(
|
||||
Lexer::new(
|
||||
&Value::from_tokens(&mut val.into_iter().peekable(), scope)
|
||||
.unwrap()
|
||||
.unquote()
|
||||
.to_string()
|
||||
.replace("\"", "")
|
||||
.replace("'", ""),
|
||||
)
|
||||
.collect::<Vec<Token>>()
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ impl Value {
|
||||
pub fn unquote(self) -> Self {
|
||||
match self {
|
||||
Self::Ident(s1, _) => Self::Ident(s1, QuoteKind::None),
|
||||
_ => todo!(),
|
||||
_ => self,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user