all the tests are now passing perfectly well
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user