Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces in coding keys not being trimmed #70

Open
johsoe opened this issue Oct 2, 2020 · 1 comment
Open

Spaces in coding keys not being trimmed #70

johsoe opened this issue Oct 2, 2020 · 1 comment
Labels
bug Something isn't working iOS

Comments

@johsoe
Copy link

johsoe commented Oct 2, 2020

If a key contains a space at the beginning of it key, this space won't be removed when generating the coding keys, causing the app to fail to compile

public override subscript(key: String) -> String? {
            switch key {
            case CodingKeys. key.stringValue: return value
            }
}
@johsoe johsoe added bug Something isn't working iOS labels Oct 2, 2020
@mariusc
Copy link
Contributor

mariusc commented Oct 2, 2020

The fronted (NStack admin panel, localize, where you create the keys and values) should probably also validate this and not allow keys that start with a whitespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS
Projects
None yet
Development

No branches or pull requests

2 participants