Skip to content

Conversation

arshadkazmi42
Copy link
Owner

Fixes #24

Context

The error was caused, due to the replace method being called on all the values without checking the type of the value and when the value was not string it was throwing replace method not found on the value.

Summary

Add handler to check if the value is string, before actually calling replace method on the value.
With this, this library supports replacing of only strings now.

May be next versions, we should add support for replacing integers and boolean too

@arshadkazmi42 arshadkazmi42 merged commit b0604b7 into master Apr 16, 2023
@arshadkazmi42 arshadkazmi42 deleted the handler-for-not-stirng branch April 16, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant