Revert "Allow unquote on all values"

This reverts commit f4c5fbae274ddd545d34107e424fa3b9c842ea14.

This change resulted in nine regressions in the spec tests. This is a
change that we should make later when the `unquote()` function has the
correct functionality. For right now, the implementation of `unquote()` is a hack to just get
things working.
This commit is contained in:
ConnorSkees 2020-02-14 10:18:48 -05:00
parent a7322e1ee8
commit 089436ec9d
2 changed files with 3 additions and 2 deletions

View File

@ -60,8 +60,9 @@ 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>>()
}

View File

@ -65,7 +65,7 @@ impl Value {
pub fn unquote(self) -> Self {
match self {
Self::Ident(s1, _) => Self::Ident(s1, QuoteKind::None),
_ => self,
_ => todo!(),
}
}