Skip to content

Commit

Permalink
fix(core): 🚨 fix maxlength line issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfoucrier committed Jul 27, 2023
1 parent 8f832d7 commit 45df0d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export const getPath = (url: string = window.location.href) => parse(url).path;
/**
* Get query object from URL.
*/
export const getQuery = (url: string, stringify: boolean = false): IGenericObject|string => stringify ? JSON.stringify(parse(url).query) : parse(url).query;
export const getQuery = (url: string, stringify: boolean = false): IGenericObject|string => {
return stringify ? JSON.stringify(parse(url).query) : parse(url).query;
};

/**
* Get hash from URL.
Expand Down

0 comments on commit 45df0d6

Please sign in to comment.