Enable $self or $this as special paramater names

This commit is contained in:
Tobie Morgan Hitchcock 2022-05-19 23:03:00 +01:00
parent 073285574a
commit 5425d0b550

View file

@ -42,7 +42,7 @@ impl Param {
match self.first() { match self.first() {
// The first part will be a field // The first part will be a field
Some(Part::Field(v)) => match v.as_str() { Some(Part::Field(v)) => match v.as_str() {
"this" => match doc { "this" | "self" => match doc {
// The base document exists // The base document exists
Some(v) => { Some(v) => {
// Get the path parts // Get the path parts