Closed Ar4m1s closed 7 months ago
Alternatively simplify like this:
let launch_options_regex = Regex::new(r#"\t{6}"LaunchOptions"\t{2}"([^"]*)""#).unwrap();
Which is less strict but catches a lot of other cases and is far easier to read and understand.
Done in #115
The launch option string "LD_PRELOAD=$LD_PRELOAD:/usr/lib32/libtcmalloc_minimal.so %command% -condebug -conclearlog -usercon -g15 -novid -nojoy" does not match because the regex does not include the characters
/
$
:
=
.
even though the string contains the necessary launch options. It is probably a simple fix. I made it work, while not properly tested that just prepending "/$:=." to the regex fixes the issue.