Skip to content

Commit 0d85999

Browse files
author
Ben Thinnes
committed
numeric name missing
1 parent f47fe20 commit 0d85999

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-validators",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "A collection of simple validator functions",
55
"main": "lib/index.js",
66
"scripts": {

src/numeric.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Accepts only numerics.
22
import {regex} from './common'
3+
const name = 'numeric'
34
const numeric = /^[0-9]*$/
45

56
export const check = (value) => {

0 commit comments

Comments
 (0)