airportyh/testem — pull request #292 by piuccio (2013-09-26 05:45:05+00:00)
Title: Wrong browser ID when test page starts with a number

Hi, I'm not sure whether this should be fixed or not :smile: but I spent some time to understand what was wrong with my test pages, so here's a fix.

When the test page starts with a number (e.g. `1.html`) the browser computes the wrong id thus preventing correct communication through the socket.

The fix is trivial and simply checks that there's another slash after the id.

This won't be enough when the user wants test pages like this `/tests/1234/test_page.html`

I tried to write a test for this, but when I run `npm test` on windows I get many errors, so I gave up :tongue:

This issues doesn't necessarily have to be fixed. It's enough that people are aware that putting numbers in the test page is not a good idea.