From b407047dcd26aa3532043576c3ee26e947ae9481 Mon Sep 17 00:00:00 2001 From: Zapdos26 Date: Sun, 3 Nov 2019 11:10:57 -0500 Subject: [PATCH] Fixed greater than/less than replacement --- src/Poll.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Poll.ts b/src/Poll.ts index 02851f4..6902995 100644 --- a/src/Poll.ts +++ b/src/Poll.ts @@ -45,8 +45,8 @@ export class Poll { actionBlockCount++; } // Remove special characters, should be able to remove this once slack figures itself out - parameters[i] = parameters[i].replace("&", "+").replace("<", "greater than ") - .replace(">", "less than "); + parameters[i] = parameters[i].replace("&", "+").replace(">", "greater than ") + .replace("<", "less than "); // We set value to empty string so that it is always defined const button: Button = { type: "button", value: " ", text: PollHelpers.buildTextElem(parameters[i]) }; actionBlocks[actionBlockCount].elements.push(button);