From aba448fdc2f39bbc76b91d04d1f6e6d770a44935 Mon Sep 17 00:00:00 2001 From: MrFry Date: Mon, 7 Oct 2019 13:51:57 +0200 Subject: [PATCH] Regexp fix, error stack sending refactor --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 96b3dfe..be4fd9c 100644 --- a/main.js +++ b/main.js @@ -65,7 +65,7 @@ const commonUselessAnswerParts = [ 'The correct answer is:', '\'' ] -const commonUselessStringParts = [',', '.', ':', '!'] +const commonUselessStringParts = [',', '\\.', ':', '!'] // ------------------------------------------------------------------------------ // : Class descriptions {{{ @@ -1250,7 +1250,7 @@ function ShowAnswers (answers, question) { }, undefined, function () { OpenErrorPage({ message: 'No result found', - stack: question // TODO: test this + stack: JSON.stringify(question) }) }) } @@ -2187,10 +2187,10 @@ function OpenErrorPage (e) { path += '?' } if (e.message) { - path += 'msg:' + SUtils.SimplifyQuery(e.message) + '&' + path += 'msg:' + SUtils.SimplifyQuery(e.message) } if (e.stack) { - path += 'stack:' + SUtils.SimplifyStack(e.stack) + path += '___stack:' + SUtils.SimplifyStack(e.stack) } path = SUtils.RemoveSpecialChars(path) } catch (e) {