Closed devmark closed 7 years ago
You can do it as an array
test: ['date_format:HH:MM:SS'],
const _parseValidation = function (validation) {
return _(validation.split(':'))
.thru((value) => {
const args = value[1] ? value[1].split(',') : []
return {name: value[0], args}
})
.value()
}
using array not help for that but help for |
only
Fixed in https://github.com/poppinss/indicative/commit/26468ac2bbab6b521a764f52ac14edc560d1357e.
Docs will be out soon
expected: args[0] = HH:MM:SS
result: args[0] = HH
should escape ":" in content