Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lume.format(str, table) doesn't properly handle false values #35

@wolf81

Description

@wolf81

Simple test:

local t = lume.format("{1} is {2} is {3}", { true, false, true })
print(t) -- true is {2} is true

I guess this is of the way Lua deals with false values, not sure what a proper fix would be, but if I can figure one out I will send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions