From 66dac7e909d7d77b9151f55fc696bb0df5640e94 Mon Sep 17 00:00:00 2001 From: Jared Date: Fri, 1 Mar 2019 10:52:36 -0700 Subject: [PATCH] update regex so it doesn't match substrings...such as 'linen' or 'phosphatidylcholine' --- commands/put.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/put.js b/commands/put.js index c35072c..03b7d30 100644 --- a/commands/put.js +++ b/commands/put.js @@ -15,7 +15,7 @@ module.exports = { } // put 3.foo in bar -> put 3.foo bar -> put 3.foo into bar - const parts = args.split(' ').filter(arg => !arg.match(/in/) && !arg.match(/into/)); + const parts = args.split(' ').filter(arg => !arg.match(/^in$/) && !arg.match(/^into$/)); if (parts.length === 1) { return B.sayAt(player, "Where do you want to put it?");