history-manager
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "history-manager", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -12,3 +12,3 @@ /** | ||
export function prepare(path: string): string { | ||
return ("/" + path).replace(TRAILING_DELIMITER, "").replace(DELIMITER_NOT_IN_PARENTHESES, "/"); | ||
return ("/" + path).replace(TRAILING_DELIMITER, "/").replace(DELIMITER_NOT_IN_PARENTHESES, "/"); | ||
} | ||
@@ -15,0 +15,0 @@ export function generate(path: Path, keys?: Key[]): RegExp { |
@@ -60,3 +60,3 @@ /** | ||
export function getLocation(href: string = URLManager.get()): ILocation { | ||
let pathname: string = "/"; | ||
let pathname: string = ""; | ||
let hash: string = ""; | ||
@@ -73,3 +73,3 @@ let query: string = ""; | ||
let split: string[] = pathname.split("?"); | ||
pathname = split.shift()! || "/"; | ||
pathname = split.shift()!; | ||
query = split.join("?"); | ||
@@ -76,0 +76,0 @@ query = query ? "?" + query : ""; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
243121