MobileChromeApps/chrome-cordova — pull request #35 by lukejohnosmahi (2013-11-10 09:56:14+00:00)
Title: fixed prefix to handle urls with slashes in fragment-id

using the regex (/[^\/]*$/, '') on the full href will give bad paths if the url fragment identifier contains slashes

eg,

"file:///assets/www/index.html#example/fragment-id".replace(/[^\/]*$/, '') == "file:///assets/www/index.html#example/"