Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/entities/gmod_wire_expression2/core/find.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@

--[[************************************************************************]]--

function query_blocked(self, update)
local function query_blocked(self, update)
if (update) then
if (self.data.findcount > 0) then
self.data.findcount = self.data.findcount - 1
Expand Down Expand Up @@ -876,46 +876,46 @@

--- Filters the list of entities by removing all entities that are NOT of this class
e2function number findClipToClass(string class)
if not pcall(WireLib.CheckRegex, sample_string, class) then return self:throw("Search string too complex!", 0) end

Check warning on line 879 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
class = string.lower(class)
return applyClip(self, function(ent)
if !IsValid(ent) then return false end

Check warning on line 882 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return replace_match(string.lower(ent:GetClass()), class)
end)
end

--- Filters the list of entities by removing all entities that are of this class
e2function number findClipFromClass(string class)
if not pcall(WireLib.CheckRegex, sample_string, class) then return self:throw("Search string too complex!", 0) end

Check warning on line 889 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return applyClip(self, function(ent)
if !IsValid(ent) then return false end

Check warning on line 891 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return not replace_match(string.lower(ent:GetClass()), class)
end)
end

--- Filters the list of entities by removing all entities that do NOT have this model
e2function number findClipToModel(string model)
if not pcall(WireLib.CheckRegex, sample_string, model) then return self:throw("Search string too complex!", 0) end

Check warning on line 898 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return applyClip(self, function(ent)
if !IsValid(ent) then return false end

Check warning on line 900 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return replace_match(string.lower(ent:GetModel() or ""), model)
end)
end

--- Filters the list of entities by removing all entities that do have this model
e2function number findClipFromModel(string model)
if not pcall(WireLib.CheckRegex, sample_string, model) then return self:throw("Search string too complex!", 0) end

Check warning on line 907 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return applyClip(self, function(ent)
if !IsValid(ent) then return false end

Check warning on line 909 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return not replace_match(string.lower(ent:GetModel() or ""), model)
end)
end

--- Filters the list of entities by removing all entities that do NOT have this name
e2function number findClipToName(string name)
if not pcall(WireLib.CheckRegex, sample_string, name) then return self:throw("Search string too complex!", 0) end

Check warning on line 916 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return applyClip(self, function(ent)
if !IsValid(ent) then return false end

Check warning on line 918 in lua/entities/gmod_wire_expression2/core/find.lua

View workflow job for this annotation

GitHub Actions / lint

"Syntax inconsistency"

Inconsistent use of '!' and 'not'
return replace_match(string.lower(ent:GetName()), name)
end)
end
Expand Down
Loading