Skip to content

Instantly share code, notes, and snippets.

@inilim
Created June 4, 2026 13:39
Show Gist options
  • Select an option

  • Save inilim/673370fdb83fe1b190b643147c79691e to your computer and use it in GitHub Desktop.

Select an option

Save inilim/673370fdb83fe1b190b643147c79691e to your computer and use it in GitHub Desktop.
SQLite Studio custom function str_iinclude_by_separator(value, separator, string_list)
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