Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/string/base/kebabcase/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var trim = require( '@stdlib/string/base/trim' );
// VARIABLES //

var RE_WHITESPACE = /\s+/g;
var RE_SPECIAL = /[!"'(),–.:;<>?`{}|~\/\\\[\]_#$*&^@%]+/g; // eslint-disable-line no-useless-escape
var RE_SPECIAL = /[\-!"'(),–.:;<>?`{}|~\/\\\[\]_#$*&^@%]+/g; // eslint-disable-line no-useless-escape
var RE_CAMEL = /([a-z0-9])([A-Z])/g;


Expand Down
8 changes: 6 additions & 2 deletions lib/node_modules/@stdlib/string/base/kebabcase/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ tape( 'the function converts a string to kebab case', function test( t ) {
'foo bar baz',
'foo bar baz qux',
'foo_bar_baz_qux',
'foo_bar baz qux'
'foo_bar baz qux',
'foo - bar',
'foo--bar'
];

expected = [
Expand All @@ -60,7 +62,9 @@ tape( 'the function converts a string to kebab case', function test( t ) {
'foo-bar-baz',
'foo-bar-baz-qux',
'foo-bar-baz-qux',
'foo-bar-baz-qux'
'foo-bar-baz-qux',
'foo-bar',
'foo-bar'
];

for ( i = 0; i < values.length; i++ ) {
Expand Down
Loading