-
Notifications
You must be signed in to change notification settings - Fork 2
comparing two Identifiers #2
Copy link
Copy link
Open
Description
Hello, I was using the lib and I came to a situation where I wanted to compare two strings and check if they are equal modulo casing. So I tried:
fromAny "hello_world" == fromAny "hello-world" -- True
But if I do:
fromAny "hello_world" == fromAny "helloWorld" -- False
It would be great if I'd have a True as a result in the last example as well. Checking the output of fromAny I have:
fromAny "hello_world" -- Identifier {unIdentifier = ["hello","world"]}
fromAny "helloWorld" -- Identifier {unIdentifier = ["hello","World"]}
So I suppose it's just a matter of changing the first letter to lowercase. I'm not really sure if this is the expected behavior or if it'll break anything. But in case this is a valid suggestion, please let me know, I don't mind making a PR =)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels