author | Cameron McCormack <cam@mcc.id.au> |
Sun, 19 Aug 2012 16:41:07 +1000 | |
changeset 54 | 455af9540770 |
parent 53 | 1dc1bc93bcf9 |
child 55 | 2982871b4092 |
publish/utils.js |
--- a/publish/utils.js Sun Aug 19 16:34:08 2012 +1000 +++ b/publish/utils.js Sun Aug 19 16:41:07 2012 +1000 @@ -118,7 +118,7 @@ if (!base) return url; if (url[0] == '/') throw "can't handle absolute paths"; if (url[0] == '#') { - return base.replace(/#.*/, url); + return base.replace(/(#.*)?$/, url); } return base.replace(/[^\/]*$/, '') + url; };