Skip to content

Commit

Permalink
Merge pull request #318 from probablykasper/text-synonym
Browse files Browse the repository at this point in the history
Add text synonym for string
  • Loading branch information
printfn authored Oct 25, 2024
2 parents 0012247 + f14d627 commit 1561332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

## Next
* Add `text` as a synonym for `string`

### v1.5.3 (2024-10-06)

* Add support for using commas rather than dots as the decimal separator,
Expand Down
2 changes: 1 addition & 1 deletion core/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ fn evaluate_as<I: Interrupt>(
Err(FendError::ExpectedAString)
};
}
"string" => {
"string" | "text" => {
return Ok(Value::String(
evaluate(a, scope, attrs, context, int)?
.format_to_plain_string(0, attrs, context, int)?
Expand Down

0 comments on commit 1561332

Please sign in to comment.