Created
June 4, 2026 13:39
-
-
Save inilim/673370fdb83fe1b190b643147c79691e to your computer and use it in GitHub Desktop.
SQLite Studio custom function str_iinclude_by_separator(value, separator, string_list)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const args = Array.from(arguments); | |
| const value = String(args[0]).toLowerCase(); | |
| const separator = String(args[1]); | |
| const list = String(args[2]).toLowerCase(); | |
| for (let item of list.split(separator)) { | |
| if(value.includes(item)){ | |
| return true; | |
| } | |
| } | |
| return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment