@voiceflow/natural-language-commander
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -62,5 +62,3 @@ "use strict"; | ||
utterance = this.replaceBracesForRegexp(utterance); | ||
// Add the start carat, so this only matches the start of commands, | ||
// which helps with collisions. | ||
utterance = "^\\s*" + utterance; | ||
utterance = "^\\s*" + utterance + "\\s*$"; | ||
// Compile the regular expression, ignore case. | ||
@@ -67,0 +65,0 @@ this.regExp = new RegExp(utterance, "i"); |
{ | ||
"name": "@voiceflow/natural-language-commander", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A tool for connecting natural language commands with callbacks.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/will-wow/natural-language-commander", |
@@ -102,5 +102,3 @@ import _ = require("lodash"); | ||
// Add the start carat, so this only matches the start of commands, | ||
// which helps with collisions. | ||
utterance = "^\\s*" + utterance; | ||
utterance = "^\\s*" + utterance + "\\s*$"; | ||
@@ -107,0 +105,0 @@ // Compile the regular expression, ignore case. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
999017
22397