tests are passing well now
This commit is contained in:
@@ -54,7 +54,7 @@ impl ScriptParser {
|
||||
// This captures the preceding delimiter (group 1) and the number (group 2) separately.
|
||||
// This avoids lookarounds and allows us to reconstruct the string correctly.
|
||||
number_re: Regex::new(r"(^|[\s\(])(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)").unwrap(),
|
||||
variable_re: Regex::new(r"\$(\w+)").unwrap(),
|
||||
variable_re: Regex::new(r"\$([^\s)]+)").unwrap(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user