Răsfoiți Sursa

toBoolean to toBooleanStrict

sou 8 ani în urmă
părinte
comite
e64870a2ff
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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.revision_id').trim().required(),
   field('commentForm.comment').trim().required(),
   field('commentForm.comment').trim().required(),
   field('commentForm.comment_position').trim().toInt(),
   field('commentForm.comment_position').trim().toInt(),
-  field('commentForm.is_markdown').trim().toBoolean()
+  field('commentForm.is_markdown').trim().toBooleanStrict()
 );
 );