Edit: Crap, let me rephrase this: String.prototype.match returns null if nothing is matched. It seems like that was what you were trying to do on that line. That's probably the issue.
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` returns `null` if nothing is matched. It seems like that was what you were trying to do on that line. That's probably the issue.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.matchreturnsnullif nothing is matched. It seems like that was what you were trying to do on that line. That's probably the issue.Thanks for reporting that issue.
I need to add automated tests, so I can fix that issue properly :)
I'll do that asap.
I would recommend Zombie!
if (matches && matches.length)fixed a problem I had with the errorUncaught TypeError: Cannot read property 'length' of nullFix should be available in 0.1.4