diff --git a/src/index.js b/src/index.js index 44408d4..00e4ad3 100644 --- a/src/index.js +++ b/src/index.js @@ -377,7 +377,7 @@ class Validator { } - rsplit = rules[field].split('|'); + rsplit = rules[field].toString().split('|'); let rs; diff --git a/test/crashes.js b/test/crashes.js index af50bfa..5964988 100644 --- a/test/crashes.js +++ b/test/crashes.js @@ -7,7 +7,6 @@ let r = {}; describe('crash', function () { - it('passing clousers and hex', async () => { let v = new Validator({ name: function () { }, tape: 0x023 }, { name: 'required', tape: 'required|integer' });