Browse files

Don't allow ; in values

  • Loading branch information...
1 parent 33febfb commit 9137ad51ab04d4c0827ca4aeaea5f89bed644ae4 @raphink raphink committed Nov 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 bacula.aug
View
4 bacula.aug
@@ -28,7 +28,9 @@ module Bacula =
let equal = del /[ \t]*=[ \t]*/ " = "
let key_name = /[a-zA-Z][a-zA-Z ]+[a-zA-Z]/
- let val = del /"?/ "\"" . store /[^"#\n\t ][^"#\n]*[^"#\n\t; ]/ . del /"?/ "\""
+ let dquote = del /"?/ "\""
+
+ let val = dquote . store /[^"#\n\t; ][^"#\n;]*[^"#\n\t; ]/ . dquote
let keyvalue = [key key_name . equal . val]
let include = [label "@include" . del "@" "@" . store /[^ #\t\n@};]+/]

0 comments on commit 9137ad5

Please sign in to comment.