Skip to content

Commit

Permalink
fix: update regex mapping for setting names
Browse files Browse the repository at this point in the history
Related to #60
  • Loading branch information
JasonConger committed Aug 2, 2022
1 parent bf179e5 commit fb3e4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion out/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const STANZA_PREFIX_REGEX = /^\[(?<prefix>[^\]].*?(=|:|::|::...|_|\/))[\<|\w|\/]
const STANZA_FREEFORM_REGEX = /^\[\<(?<stanza>.*?)\>\]/ // matches things like [<spec>] or [<custom_alert_action>]
const STANZA_ABSOLUTE_REGEX = /^\[(?<stanza>|[^\<\>\:\/]+)\]/ // matches things like [tcp] or [SSL] (does not allow <, >, :, or /)
//const SETTING_REGEX = /^(?<setting>\w.*?)\s*=\s*(?<value>[^\r\n]+)/
const SETTING_REGEX = /^(?<setting>((\w)|\<name\>|\<tag\d\>).*?)\s*=\s*(?<value>[^\r\n]+)/
const SETTING_REGEX = /^(?<setting>((\w)|\<name\>|\<tag\d\>|\<.+\>).*?)\s*=\s*(?<value>[^\r\n]+)/
exports.SETTING_REGEX = SETTING_REGEX
const SETTING_PREFIX_REGEX = /^(?<prefix>[^-\.].*?)\<.*?\>/
const SETTING_FREEFORM_REGEX = /^\<(?<setting>.*?)\>/
Expand Down

0 comments on commit fb3e4ce

Please sign in to comment.