···131131 let version = ref None in
132132 let commit = ref None in
133133 (* Helper to check if string contains substring *)
134134- let contains_substring s sub =
135135- try
136136- let _ = Str.search_forward (Str.regexp_string sub) s 0 in
137137- true
138138- with Not_found -> false
139139- in
134134+ let contains_substring s sub = Re.execp (Re.compile (Re.str sub)) s in
140135 (* Helper to extract value after "KEY: " pattern *)
141136 let extract_value line prefix =
142137 let prefix_len = String.length prefix in