From d36a65d8434dc46ccfc99401cd70602de846b0f2 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sun, 25 May 2014 13:30:45 -0400 Subject: [PATCH] Improved pretty-printing of matchers --- route.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/route.js b/route.js index 37feabd..4815dbb 100644 --- a/route.js +++ b/route.js @@ -994,7 +994,10 @@ function Routing(exports) { return; } if (m instanceof $Success) { - acc.push("{" + JSON.stringify(m.value) + "}"); + var vs = JSON.stringify(typeof m.value === 'object' + ? setToArray(m.value) + : m.value); + acc.push("{" + vs + "}"); return; }