From 97e80117fbeb361c4e37d6345a0ef147aa4fdf6f Mon Sep 17 00:00:00 2001 From: canonelis <86532940+Canonelis@users.noreply.github.com> Date: Sat, 3 Jul 2021 03:12:09 -0400 Subject: [PATCH] changing regex from lazy to greedy --- src/Custom Assetbundle.0a61c6.ttslua | 2 +- src/Global.-1.ttslua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Custom Assetbundle.0a61c6.ttslua b/src/Custom Assetbundle.0a61c6.ttslua index 5d36a50..465c6af 100644 --- a/src/Custom Assetbundle.0a61c6.ttslua +++ b/src/Custom Assetbundle.0a61c6.ttslua @@ -793,4 +793,4 @@ function findPlayerBySteamID(steam_id) end end return nil -end \ No newline at end of file +end diff --git a/src/Global.-1.ttslua b/src/Global.-1.ttslua index abf0591..da01404 100644 --- a/src/Global.-1.ttslua +++ b/src/Global.-1.ttslua @@ -485,7 +485,7 @@ function clueEntered(player, value) end -- Remove the newline, trim the clue, and convert to lowercase - value = value:gsub("\n", ""):match("%s*(.-)%s*$"):lower() + value = value:gsub("\n", ""):match("%s*(.*)%s*$"):lower() -- Parse the entered clue into its respective parts local clue, number, error = getClueDetails(value) @@ -1604,7 +1604,7 @@ function processChat(message) end end - return command, args:gsub("^%s*(.-)%s*$", "%1") + return command, args:gsub("^%s*(.*)%s*$", "%1") end function toggleTurns()