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

Problem in Camelize method #1397

Open
Nefcanto opened this issue Feb 17, 2024 · 2 comments
Open

Problem in Camelize method #1397

Nefcanto opened this issue Feb 17, 2024 · 2 comments

Comments

@Nefcanto
Copy link

Simply run this code:

var kebabed = "some-text-here";
var camelized = kebabed.Camelize();
Console.WriteLine(camelized);
// prints some-text-here instead of someTextHere

var dotted = "some.text.here";
var camelized = dotted.Camelize();
Console.WriteLine(camelized);
// prints some.text.here instead of someTextHere

@SimonCropp
Copy link
Collaborator

@hazzik @hangy @MehdiK any opinions on what should be the correct behavior in this scenario

@Nefcanto
Copy link
Author

@SimonCropp, I have also reported #1282.

The point is, the camelCasing, PascalCasing, kebab-casing, and snake_casing conventions are clear. The source should be converted into the target. In the camelCasing convention, you should only see alphanumeric characters, and no hyphens or underline should exist between words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants