On 8/29/06, <b class="gmail_sendername"><a href="mailto:svn-commits@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">svn-commits@lists.digium.com</a></b> <<a href="mailto:svn-commits@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
svn-commits@lists.digium.com</a>> wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">URL: <a href="http://svn.digium.com/view/asterisk?rev=41283&view=rev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://svn.digium.com/view/asterisk?rev=41283&view=rev
</a><br>Log:<br>This change fixes bug 7820. Way back in April this bug was reintroduced, it appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***.
<br><br></blockquote></div><br>Or, make it so that we could somehow escape the characters, so that the parser would know that we're really trying to match on the letter. I'm not sure the best way to do this -- using the backslash as an escape character might look a little funny, like this:
<br><br>exten => _\Noob.,1,Verbose(3, Yup, you're a noob!)<br><br>I'm just throwing out ideas here, there's probably a much more elegant solution that I just haven't seen. It would be nice to be able to do more advanced matching. (I know what you're thinking -- I'd like to be able to use regex matches too -- but that's probably overkill at this stage.)
<br><br>-Jared<br>-Jared<br>