Skip to content

fix: added support for strings containing \0#23

Merged
kpol merged 1 commit intokpol:masterfrom
OliverVea:master
Jan 19, 2025
Merged

fix: added support for strings containing \0#23
kpol merged 1 commit intokpol:masterfrom
OliverVea:master

Conversation

@OliverVea
Copy link
Copy Markdown
Contributor

Previously, Character.Any.Char was assigned to a default value of '\0'. This meant that it cannot be differentiated from new Character('\0').

My suggested change is to make Character.Char nullable, and base pattern-matching decisions on the nullability instead.

I have added a test to showcase the lack of support for '\0' before the change.

Previously, `Character.Any.Char` was assigned to a default value of `\0`.
This meant that it cannot be differentiated from `new Character('\0')`.

My suggested change is to make `Character.Char` nullable, and base pattern-matching decisions on the nullability instead.

I have added a test to showcase the lack of support for '\0' before the change.
@kpol
Copy link
Copy Markdown
Owner

kpol commented Jan 19, 2025

@OliverVea great idea, thanks!

@kpol kpol merged commit 0fe86ab into kpol:master Jan 19, 2025
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.

2 participants