Skip to content

Commit 0a27709

Browse files
committed
action: improve handling of # comments in config_lines*
1 parent ca674b2 commit 0a27709

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ let file_lines_exn file =
145145

146146
let make_config_lines =
147147
List.filter_map begin fun s ->
148+
let (s, _comment) = Stre.dividec s '#' in
148149
let s = String.strip s in
149-
if s <> "" && s.[0] <> '#' then Some s else None
150+
if s <> "" then Some s else None
150151
end
151152

152153
let config_lines_exn = make_config_lines $ file_lines_exn

0 commit comments

Comments
 (0)