Convert any file hosting link into premium download links. Get maximum speed, no waiting times, and unlimited downloads from 50+ supported hosts.
-- -------------------------------------------- -- 6. EXAMPLE USAGE (commented out) -- -------------------------------------------- --[[ local my_string = " hello world " print(string_utils.trim(my_string)) --> "hello world" local parts = string_utils.split("a,b,c", ",") --> {"a","b","c"}
-- Check if string starts with a prefix function string_utils.starts_with(str, prefix) return str:sub(1, #prefix) == prefix end
-- Check if string matches a pattern (regex-lite) function validate.matches_pattern(str, pattern) return string.match(str, pattern) ~= nil end
-- Merge table t2 into t1 (overwrites t1 keys) function table_utils.merge(t1, t2) for k, v in pairs(t2) do t1[k] = v end return t1 end