// Copyright Abridged, Inc. 2022,2024. All Rights Reserved. // Node module: @collabland/common // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT export function tokenize(str?: string, delimiter: string | RegExp = /[,\s]+/) { if (str == null) return []; return str.split(delimiter).filter(t => t !== ''); }