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

IsArray option isn't parsing tags with 0 as value correctly #490 #557

Merged
merged 1 commit into from Mar 23, 2023

Conversation

omggga
Copy link
Contributor

@omggga omggga commented Mar 21, 2023

Purpose / Goal

This is fix for isArray option isn't parsing tags with 0 as value correctly. This only affected when we are parsing tags, not attributes.

The problem is that obj[options.textNodeName] is checking the value exist, but if it false or 0 it will fail the test.
So you can try to fix it to test it also for boolean type or zero.

The opened issue is #490

Type

Please mention the type of PR

  • [x]Bug Fix
  • [ ]Refactoring / Technology upgrade
  • [ ]New Feature

@coveralls
Copy link

coveralls commented Mar 22, 2023

Coverage Status

Coverage: 98.16% (+0.003%) from 98.156% when pulling 90021b4 on omggga:patch-leaftag into 292fb78 on NaturalIntelligence:master.

@amitguptagwl
Copy link
Member

Can you please add a test for the same?

@omggga
Copy link
Contributor Author

omggga commented Mar 22, 2023

Can you please add a test for the same?

I added a test to check this feature.

@amitguptagwl amitguptagwl merged commit 256cfd4 into NaturalIntelligence:master Mar 23, 2023
@omggga omggga deleted the patch-leaftag branch March 23, 2023 08:20
@omggga omggga restored the patch-leaftag branch March 23, 2023 08:20
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.

None yet

3 participants