Skip to content

Conversation

@Luidog
Copy link
Owner

@Luidog Luidog commented Oct 13, 2018

This PR contains a bug fix addressing the client script method. The script method would incorrectly parse script parameter strings as json. This PR upgrades the isJson utility method to correctly identify json objects.

This commit fixes a bug with the client’s script method. The script method was parsing all values as json. The script method now only attempts to parse valid json.

Signed-off-by: Lui de la Parra <lui@mutesymphony.com>
This commit updates the isJson utility function to better identify null, strings, undefined, or a number.

This commit also adds tests specific to the isJson utility.

Signed-off-by: Lui de la Parra <lui@mutesymphony.com>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 922b585 on script-bug-fix into 5092986 on master.

@Luidog Luidog merged commit 7151865 into master Oct 13, 2018
@Luidog Luidog deleted the script-bug-fix branch October 15, 2018 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants