Explorar o código

toBoolean to toBooleanStrict

sou %!s(int64=8) %!d(string=hai) anos
pai
achega
e64870a2ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/form/comment.js

+ 1 - 1
lib/form/comment.js

@@ -8,5 +8,5 @@ module.exports = form(
   field('commentForm.revision_id').trim().required(),
   field('commentForm.comment').trim().required(),
   field('commentForm.comment_position').trim().toInt(),
-  field('commentForm.is_markdown').trim().toBoolean()
+  field('commentForm.is_markdown').trim().toBooleanStrict()
 );