history-manager
Advanced tools
Comparing version 1.4.2 to 1.4.3
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
## [1.4.3] - 2021-04-08 | ||
- actually fix `URLManager.get` bug | ||
## [1.4.2] - 2021-04-08 | ||
@@ -5,0 +8,0 @@ - fix `URLManager.get` bug |
{ | ||
"name": "history-manager", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -18,2 +18,6 @@ /** | ||
function getLocation() { | ||
return LOCATION_BASE + (BASE[0] === "#" ? LOCATION_PATHNAME : ""); | ||
} | ||
const parenthesesRegex: RegExp = /[\\\/]+/g; | ||
@@ -39,3 +43,3 @@ | ||
export function get(): string { | ||
const LOCATION = LOCATION_BASE + LOCATION_PATHNAME; | ||
const LOCATION = getLocation(); | ||
return prepare(clearHref().split(LOCATION).slice(1).join(LOCATION).split(BASE).slice(1).join(BASE)); | ||
@@ -55,5 +59,5 @@ } | ||
} | ||
return (full ? LOCATION_BASE + (BASE[0] === "#" ? LOCATION_PATHNAME : "") : "") + | ||
return (full ? getLocation() : "") + | ||
(BASE + "/" + href).replace(parenthesesRegex, "/") | ||
; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
233418
6789