If.multi_speaker {
Condition {
Type RegexMatch
- Regex "(${var:MultiCodec1}(-sdca)?)"
- String "${var:SpeakerCodec1}"
+ # guard with "=" to avoid empty string matching
+ Regex "=(${var:MultiCodec1}(-sdca)?)="
+ String "=${var:SpeakerCodec1}="
}
True {
Define.SpeakerCodec1 ""
If.multi_mic {
Condition {
Type RegexMatch
- Regex "(${var:MultiCodec1}(-sdca)?)"
- String "${var:MicCodec1}"
+ # guard with "=" to avoid empty string matching
+ Regex "=(${var:MultiCodec1}(-sdca)?)="
+ String "=${var:MicCodec1}="
}
True {
Define.MicCodec1 ""
If.multi_headset {
Condition {
Type RegexMatch
- Regex "(${var:MultiCodec1}(-sdca)?)"
- String "${var:HeadsetCodec1}"
+ # guard with "=" to avoid empty string matching
+ Regex "=(${var:MultiCodec1}(-sdca)?)="
+ String "=${var:HeadsetCodec1}="
}
True {
Define.HeadsetCodec1 ""