Skip to content

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

3 participants