I was going to write the same ... so I guess the pointless war is over,
right?

I think I already wrote the simple and robust RegExp ...

xhr.send( */^P(U|OS)T$/i*.test( type ) ? s.data : null );

but you can do whatever you want :P

Regards

On Fri, Aug 14, 2009 at 9:27 AM, James Padolsey <
jamespadol...@googlemail.com> wrote:

>
> I think you mean /^(PUT|POST)$/
>
> Your regex will match PUT at the start of a string or POST at the end
> of one.
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to