simple-react-validator
simple-react-validator copied to clipboard
Abbreviation is shown as single letter words. How to change the message not convert the attribute names to humanized form ?
Can you give me an example?
@stuyam refer to the code https://codesandbox.io/s/vibrant-kilby-fhtff
That page isn't loading for me, can you past just a small example of the code? I don't need a working example just want to know a specific use case you are trying to use.
Oops. here is the code {this.validator.message("ID ", this.state.val, "required")}
I expect 'The ID field is required' but this is what is shown 'The i d field is required' I'm missing something here
Same me. How to fix this bug?
The issue seems to be because of an incorrect replacement adding an extra space here https://github.com/dockwa/simple-react-validator/blob/master/src/simple-react-validator.js#L247-L250 I can PR a fix if needed!
@EgoMaw feel free to PR a fix if you understand the issue 👍
I've just PRed a fix! https://github.com/dockwa/simple-react-validator/pull/425
Fixed in latest v1.6.2 release.