Skip to content

Commit

Permalink
* core: fix undefined and null being strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
YonLJ committed Oct 31, 2024
1 parent 5a99de2 commit 435bc77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/src/helpers/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export function parseCommand(commandLike: CommandLike): CommandExecuteInfo | und
return [key, value];
})),
params: params.map((param) => {
if (param === 'undefined') return undefined;
if (param === 'null') return null;
try {
if (param.includes('%')) {
param = decodeURIComponent(param);
Expand Down

0 comments on commit 435bc77

Please sign in to comment.