We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a82a9c1 commit ea4dc39Copy full SHA for ea4dc39
src/luacheck/vendor/sha1/init.lua
@@ -39,7 +39,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.]]
39
sha1.version = "0.6.0"
40
41
local function choose_ops()
42
- if _VERSION:find("5%.3") then
+ if tonumber(_VERSION:match"%d+%.%d+") >= 5.3 then
43
return "lua53_ops"
44
elseif pcall(require, "bit") then
45
return "bit_ops"
0 commit comments