fix(core): update

This commit is contained in:
Philipp Kunz 2022-07-08 12:31:44 +02:00
parent 7fdc2a7bc1
commit 5d78b27eed
3 changed files with 10 additions and 1 deletions

View File

@ -10,6 +10,11 @@ tap.test('first test', async () => {
tap.test('should check an IBAN', async () => {
expect(testValidator.isIban('AT95 0100 0000 0555 4915')).toBeTrue();
});
tap.test('escape email', async () => {
const escapedEmail = testValidator.escape('test@example.com');
console.log(escapedEmail);
})
tap.start();

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartvalidator',
version: '1.0.2',
version: '1.0.3',
description: 'a wrapper for the validator package to perform validations'
}

View File

@ -8,4 +8,8 @@ export class SmartValidator {
public isIban(stringArg: string) {
return plugins.validator.isIBAN(stringArg);
}
public escape(stringArg: string) {
return plugins.validator.escape(stringArg);
}
}