From 887415fb311d7303f238ff7b481d6a125b5c02b7 Mon Sep 17 00:00:00 2001 From: mama Date: Thu, 19 Oct 2017 09:41:39 +0200 Subject: [PATCH] Correction du validateur d'ints --- source/components/conversation/validators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/components/conversation/validators.js b/source/components/conversation/validators.js index ba3a10e80..4e9a47cef 100644 --- a/source/components/conversation/validators.js +++ b/source/components/conversation/validators.js @@ -9,6 +9,6 @@ export let number = { } export let int = { - test: v => /^[0-9]+/.test(v), + test: v => /^[0-9]+$/.test(v), error: 'Vous devez entrer un entier, par ex. 16' }