We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isSlug
1 parent 6d87bfe commit 328dea0Copy full SHA for 328dea0
1 file changed
test/validators.js
@@ -10032,8 +10032,15 @@ describe('Validators', () => {
10032
it('should validate slug', () => {
10033
test({
10034
validator: 'isSlug',
10035
- args: ['cs_67CZ'],
10036
- valid: ['cs-cz', 'cscz'],
+ valid: [
+ 'foo',
10037
+ 'foo-bar',
10038
+ 'foo_bar',
10039
+ 'foo-bar-foo',
10040
+ 'foo-bar_foo',
10041
+ 'foo-bar_foo*75-b4r-**_foo',
10042
+ 'foo-bar_foo*75-b4r-**_foo-&&',
10043
+ ],
10044
invalid: [
10045
'not-----------slug',
10046
'@#_$@',
0 commit comments