Skip to content

Commit

Permalink
Add duration to hints for EVENT_CLOSE_MODE and use alternate regexp f…
Browse files Browse the repository at this point in the history
…or pattern
  • Loading branch information
Isaac Connor committed Mar 14, 2024
1 parent dee7a27 commit 62ba0bf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -2534,15 +2534,10 @@ our @options = (
the events may be shorter than the section length if an alarm
has occurred.
`,
type => $types{boolean},
type => {
db_type =>'string',
hint =>'time|idle|alarm',
pattern =>qr|^([tia])|i,
format =>q( ($1 =~ /^t/)
? 'time'
: ($1 =~ /^i/ ? 'idle' : 'time' )
)
hint =>'time|duration|idle|alarm',
pattern =>qr/^(time|duration|idle|alarm)/,
},
category => 'config',
},
Expand Down

0 comments on commit 62ba0bf

Please sign in to comment.