File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ module Config_file = struct
6565 let trim_trailing_ws line =
6666 let re_ws = Re. compile (Re.Emacs. re " [ \t ]+$" ) in
6767 try
68- let ofs = fst (Re. get_all_ofs (Re. exec re_ws line)).(0 ) in
68+ let ofs = fst (Re.Group. all_offset (Re. exec re_ws line)).(0 ) in
6969 String. sub line 0 ofs
7070 with Not_found ->
7171 line
@@ -80,7 +80,7 @@ module Config_file = struct
8080 let re = Re. compile (Re.Emacs. re " \\ ([^=\\ \t ]+\\ )[\\ \t ]*=[\\ \t ]*\\ (.*\\ )" ) in
8181 let get (x ,y ) = String. sub line x (y- x) in
8282 try
83- match Re. get_all_ofs (Re. exec re line) with
83+ match Re.Group. all_offset (Re. exec re line) with
8484 | [| _; key_ofs; v_ofs |] ->
8585 (* First in array is always the full extent of all matches *)
8686 Some (get key_ofs, get v_ofs)
You can’t perform that action at this time.
0 commit comments