all the tests are now passing perfectly well

This commit is contained in:
filipriec
2025-07-07 15:35:33 +02:00
parent afdd5c5740
commit 1770292fd8
2 changed files with 3 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ impl ScriptAnalyzer {
/// Extract all string literals from a script (simple regex-based approach)
pub fn extract_string_literals(script: &str) -> Vec<String> {
let re = regex::Regex::new(r#""([^"]*)"#).unwrap();
let re = regex::Regex::new(r#""((?:\\.|[^"])*)""#).unwrap();
re.captures_iter(script)
.map(|cap| cap[1].to_string())
.collect()