loadContent doesn't match "just" <html> #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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