Because the "bad" link is in format:

/static//...

The regex rule is to replace the '/static/' leaving the rest of the string to be parsed as a "location" id. In our location scheme, invalid characters are transformed into '_'. Thus the test asserts currently implemented behavior.