Skip to content

Commit

Permalink
Merge 8f2df04 into de48970
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci authored Feb 26, 2021
2 parents de48970 + 8f2df04 commit bd85edc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -10000,8 +10000,15 @@ describe('Validators', () => {
it('should validate slug', () => {
test({
validator: 'isSlug',
args: ['cs_67CZ'],
valid: ['cs-cz', 'cscz'],
valid: [
'foo',
'foo-bar',
'foo_bar',
'foo-bar-foo',
'foo-bar_foo',
'foo-bar_foo*75-b4r-**_foo',
'foo-bar_foo*75-b4r-**_foo-&&',
],
invalid: [
'not-----------slug',
'@#_$@',
Expand Down

0 comments on commit bd85edc

Please sign in to comment.