Add EqualsIgnoreCase string builtin function#509
Conversation
|
(Note - I'm not the maintainer of Scriban - just another occasional contributer) You beat me to it! While you're at it, I have a suggestion, if you have the time... Add an overload for the normal equals method that accepts Could also do that for all of the other methods, where the .NET method also accepts IIRC, Scriban supports optional parameters, so it would be as easy as copy/pasting the
If Scriban doesn't support optional parameters, then.... Maybe I'll add that? |
|
I considered making general However, I think I may add an optional parameter to such functions, like |
|
Adding I would prefer not to change existing methods. For 6+ years nobody has been looking for configurable string comparisons, so this is not necessary to change all these. Users can always create custom methods on their side. |
Pull Request Test Coverage Report for Build 5229987164Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
I have added EqualsIgnoreCase string builtin function which would be faster way for case insensitive string comparison than the workaround I have mentioned in my comment in #508 .