Skip to content

Commit

Permalink
Fixing Nx.strpos to use plain string
Browse files Browse the repository at this point in the history
  • Loading branch information
IrcDirk committed Dec 12, 2018
1 parent 4a4a0cc commit 76fb45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NxUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ end
---------------------------------------------------------------------------------------

function Nx.strpos (haystack, needle, offset)
local pattern = string.format("(%s)", needle)
local i = string.find (haystack, pattern, (offset or 0))
--local pattern = string.format("(%s)", needle)
local i = string.find (haystack, needle, (offset or 0), true)

return (i ~= nil and i or false)
end
Expand Down

0 comments on commit 76fb45a

Please sign in to comment.