Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
tupyy committed Jul 17, 2024
1 parent f21dfc4 commit 33707b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lenses/fstab.aug
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Fstab =

let sep_tab = Sep.tab
let sep_spc = Sep.space
let sep_tab_comma = del /,?[ \t]+/ " "
let sep_comma_tab = del /,?[ \t]+/ " "
let comma = Sep.comma
let eol = Util.eol

Expand All @@ -29,7 +29,7 @@ module Fstab =
[ label "file" . store file ] . sep_tab .
comma_sep_list "vfstype" .
(sep_tab . comma_sep_list "opt" .
(sep_tab_comma . [ label "dump" . store /[0-9]+/ ] .
(sep_comma_tab . [ label "dump" . store /[0-9]+/ ] .
( sep_spc . [ label "passno" . store /[0-9]+/ ])? )? )?
. Util.comment_or_eol ]

Expand Down
2 changes: 1 addition & 1 deletion lenses/tests/test_fstab.aug
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ module Test_fstab =
{ "passno" = "1" }
{ "#comment" = "device at install: /dev/sda3" }
}

(* Bug #832 - Allow comma after the last option *)
test Fstab.lns get "/dev/mapper/foo-bar / xfs defaults, 0 0\n" =
{ "1"
Expand Down

0 comments on commit 33707b4

Please sign in to comment.