From 351c6e4b2448ba5ea657f325e2430294eb0036f1 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Mon, 27 Apr 2015 19:01:16 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20expression=20"qual=20=C3=A8"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/memoria.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/memoria.coffee b/scripts/memoria.coffee index b6b5cb5..02b54c4 100644 --- a/scripts/memoria.coffee +++ b/scripts/memoria.coffee @@ -55,7 +55,7 @@ module.exports = (robot) -> robot.respond /memory-dump/i, (res) -> res.send JSON.stringify robot.brain.get('memoria') - robot.respond /(?:che )?(?:(?:(?:(?:(cos|qual|quand)\'è)|(?:chi (sono|è)?)))|(?:quali|cosa) sono) ([^?]+)(?:\?)?/i, (res) -> + robot.respond /(?:che )?(?:(?:(?:(?:(cos|qual|quand)(?:\'| )?è)|(?:chi (sono|è)?)))|(?:quali|cosa) sono) ([^?]+)(?:\?)?/i, (res) -> query = undefined # Estrazione query (quand,cos,qual,chi...) if res.match[2] then query = res.match[2] or res.match[1]