Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bin_match_json): check variable type before using #6150

Closed

Conversation

Orion-zhen
Copy link

Description

To check the type of RootElement, if it's an array, then walk through all elements inside. Or it's an object type, run the original code.

Motivation and Context

Closes #issue6140

How Has This Been Tested?

I ran my simple test in:

  • Windows version: 11
  • OS architecture: 64bit
  • PowerShell version: 7.4.5

Without my commit, the scoop search qqnt shows this:

image

With my commit, the scoop search qqnt shows this:

image

Displayed in one picture:

image

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

@Super1Windcloud
Copy link

@niheaven
Copy link
Member

Ref: #6151 (comment)

@niheaven niheaven closed this Oct 10, 2024
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