We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey there!
I just found inflection.underscore('_') returns '' (an empty string).
inflection.underscore('_')
''
I bet it's a bug since this method should add, not remove, underscores.
Once confirmed by the author, I'm happy to implement a fix.
The text was updated successfully, but these errors were encountered:
FYI here is a code for a test that found that bug:
const inflection = require('inflection'); const fc = require('fast-check'); describe('inflection', () => { it('underscores properly', () => { fc.assert( fc.property(fc.string(), text => { const underscored = inflection.underscore(text); expect(underscored.length).toBeGreaterThanOrEqual(text.length); }), { numRuns: 10000 } ); }); });
Sorry, something went wrong.
No branches or pull requests
Hey there!
I just found
inflection.underscore('_')
returns''
(an empty string).I bet it's a bug since this method should add, not remove, underscores.
Once confirmed by the author, I'm happy to implement a fix.
The text was updated successfully, but these errors were encountered: