Replies: 2 comments
-
.... Well, only in case there's a capital preceded by a dash:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It's funny, but there are even few test cases for Str::snake method, covering this behavior: // prevent breaking changes
$this->assertSame('foo-bar', Str::snake('foo-bar'));
$this->assertSame('foo-_bar', Str::snake('Foo-Bar'));
$this->assertSame('foo__bar', Str::snake('Foo_Bar')); But i agree, this is wrong behavior and should be fixed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
is
kebab()
supposed to add a dash when it encounters a dash?snake()
doesn't double the underscore, hence the question.Thank you!
Guus
Beta Was this translation helpful? Give feedback.
All reactions