Explorar el Código

Merge branch 'master' into bug/2763-malformed-security-render-error

bubble
shockey hace 7 años
committed by GitHub
padre
commit
44ea2773cf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/core/utils.js

+ 2
- 2
src/core/utils.js Ver fichero

@@ -453,13 +453,13 @@ export const propChecker = (props, nextProps, objectList=[], ignoreList=[]) => {
}

const validateNumber = ( val ) => {
if ( !/^\d+(.?\d+)?$/.test(val)) {
if ( !/^-?\d+(.?\d+)?$/.test(val)) {
return "Value must be a number"
}
}

const validateInteger = ( val ) => {
if ( !/^\d+$/.test(val)) {
if ( !/^-?\d+$/.test(val)) {
return "Value must be integer"
}
}


Cargando…
Cancelar
Guardar