ossobv / asterisklint

Asterisk PBX configuration syntax checker
GNU General Public License v3.0
61 stars 12 forks source link

In Ast1.4 GotoIf($["x"=~"[0-9]{1,2}"]?abc,def) does an early split on comma. #9

Open wdoekes opened 8 years ago

wdoekes commented 8 years ago

The above seems to fail because asterisk is ,-splitting very soon. You'd need a \, instead of , inside the regex. Horrible.

Can be worked around by using a global for the regex.

We should check whether Ast11 does this too and what happens exactly. And then warn about comma's.