You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to match certain strings but ignore cases. It would basically do the same as string or charSequence, but match against .toLowerCase() instead of an exact match.
Languages like SQL have all their keywords case-insensitive, so SELECT, select, and SeLeCt are all valid, but writing a rule for that can end up looking kinda messy.
A rule like i('str') could be made that does this, however it could cause confusion since it would only work when passing a string or charSequence. People may think they could pass results of other rules to it, which would not work. So perhaps one of these ways to write a case insensitive string would be useful?:
It would be useful to match certain strings but ignore cases. It would basically do the same as string or charSequence, but match against .toLowerCase() instead of an exact match.
Languages like SQL have all their keywords case-insensitive, so
SELECT
,select
, andSeLeCt
are all valid, but writing a rule for that can end up looking kinda messy.A rule like
i('str')
could be made that does this, however it could cause confusion since it would only work when passing a string or charSequence. People may think they could pass results of other rules to it, which would not work. So perhaps one of these ways to write a case insensitive string would be useful?:The text was updated successfully, but these errors were encountered: