tests are passing well now

This commit is contained in:
filipriec
2025-07-07 20:29:51 +02:00
parent b7c8f6b1a2
commit aff4383671
6 changed files with 489 additions and 331 deletions

View File

@@ -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(),
}
}