Closed jeromegn closed 10 years ago
Thanks for reporting that issue. I need to add automated tests, so I can fix that issue properly :) I'll do that asap.
if (matches && matches.length)
fixed a problem I had with the error Uncaught TypeError: Cannot read property 'length' of null
Fix should be available in 0.1.4
Hey there,
I've been fiddling around with your library. Works well!
I found a small bug. This regex (https://github.com/MoOx/pjax/blob/master/src/pjax.js#L346) doesn't match
<html>
. It matches<html lang="en">
and a lot of other possibilities. But not plain old<html>
!Or maybe this (https://github.com/MoOx/pjax/blob/master/src/pjax.js#L349) should be
if (matches && matches.length)
Thought I'd let you know.
Edit: Crap, let me rephrase this:
String.prototype.match
returnsnull
if nothing is matched. It seems like that was what you were trying to do on that line. That's probably the issue.