Skip to content

Commit d8d4bef

Browse files
att
1 parent c80226d commit d8d4bef

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ private_vibescript.list_scripts = function(config_json)
66
local current_script = config_json.scripts[i]
77
local print_script = false
88
if start_filtrage then
9-
if dtw.starts_with(current_script.name, start_filtrage) then
9+
if private_vibescript.is_str_inside(current_script.name, start_filtrage) then
1010
print_script = true
1111
end
1212
end

luasrc/str.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
private_vibescript.is_str_inside = function(str,target)
3+
if not str or not target then
4+
return false
5+
end
6+
if string.find(str,target,1,true) then
7+
return true
8+
end
9+
return false
10+
end

0 commit comments

Comments
 (0)