simon-weber / Autoplaylists-for-Google-Music

Adds autoplaylists, aka iTunes "smart playlists", to Google Music.
https://autoplaylists.simon.codes
MIT License
93 stars 18 forks source link

Add an option to make string comparisions case-insensitive #27

Closed sschuberth closed 8 years ago

sschuberth commented 8 years ago

That would be useful for badly tagged uploaded-and-not-matched songs.

simon-weber commented 8 years ago

Good idea.

If you're eager to have it now, you could make "string equals foo" case insensitive with something like "string matches-regex ^[Ff][Oo][Oo]$". Since I don't expose modifiers I don't think there's an easier way to write it out currently, but this has been useful for matching matching genres with mixed first-character caps (eg "progressive metal" and "Death Metal" both match "[Mm]etal").

simon-weber commented 8 years ago

I added new case-insensitive operators for equals, not equals, and matches. They may end up being a bit slow -- I'm not sure how well lovefield uses the index for more complex regexes (if at all).

sschuberth commented 8 years ago

Thanks again!