8000 string-template can't return number 0 · Issue #576 · angus-c/just · GitHub
[go: up one dir, main page]

Skip to content

string-template can't return number 0 #576

Open

Description

@lizyChy0329

If value is 0, return ''. How about fix it to return String(value) || ''

return value || '';

And I find that: keyParts[i] will return ' setting' when templete is {{ setting.count }}, so lead to value[keyParts[i]] is undefined

Activity

  1. changed the title [-]string-template do not return number type value[/-] [+]string-template can't return number 0[/+] on Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0