Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Jan 7, 2019
1 parent f959553 commit 2f9cab0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ exports.urlBreak = function (url, startIndex) {
result.queryStr = url.substring(i + 1, fragmentIndex);
break;
} else if (url[i] === '#') {
result.url = url.substring(0, i)
result.hashStr = url.substring(i + 1);
break;
return {
url: url.substring(0, i),
hashStr: url.substring(i + 1)
}
}
}
return result;
Expand Down

0 comments on commit 2f9cab0

Please sign in to comment.