Skip to content

Commit

Permalink
fix(dynamic string): ironvar parser being too greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Jan 25, 2024
1 parent bfec312 commit 4d9d78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamic_value/dynamic_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fn parse_variable(chars: &[char]) -> (DynamicStringSegment, usize) {
let str = chars
.iter()
.skip(1)
.take_while(|&c| !c.is_whitespace())
.take_while(|&c| c.is_ascii_alphanumeric() || c == &'_' || c == &'-')
.collect::<String>();

let len = str.chars().count() + SKIP_HASH;
Expand Down

0 comments on commit 4d9d78f

Please sign in to comment.