fix(core): update
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartvalidator',
|
||||
version: '1.0.4',
|
||||
version: '1.0.5',
|
||||
description: 'a wrapper for the validator package to perform validations'
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ export class SmartValidator {
|
||||
/**
|
||||
* might be buggy. TODO: Improve.
|
||||
* @param stringArg
|
||||
* @returns
|
||||
* @returns
|
||||
*/
|
||||
public isCsv(stringArg: string) {
|
||||
return stringArg.split(',').length > 4 || stringArg.split(';').length > 4;
|
||||
|
@@ -2,6 +2,4 @@ import validatorMod from 'validator';
|
||||
|
||||
const validator: typeof validatorMod.default = validatorMod as any;
|
||||
|
||||
export {
|
||||
validator
|
||||
}
|
||||
export { validator };
|
||||
|
Reference in New Issue
Block a user