UNPKG
simple-validator-js
Version:
latest (1.8.0)
1.8.0
1.7.0
1.6.0
1.5.0
1.4.8
1.4.7
1.4.6
1.4.5
Simple form validator and autocorrector.
github.com/fermmm/simple-validator
fermmm/simple-validator
simple-validator-js
/
tests
/
sandbox
/
index.ts
11 lines
(7 loc)
•
277 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
Validation
}
from
"../../source"
;
import
{ drawSpecialInput }
from
"./SpecialInput"
;
const
autoCorrect
:
boolean
=
false
;
function
testValidation
(
text
:
string
):
Validation
{
return
new
Validation
(text).
isEmail
(); }
drawSpecialInput
(testValidation, autoCorrect);