raethlein / AIML.js

AIML Interpreter written in node.js
69 stars 32 forks source link

Case-insensitive wildcard returns #3

Closed gleuch closed 8 years ago

gleuch commented 8 years ago

The current version should not be altering the casing of the clientInput when doing wildcard matching.

E.g. user says My name is Ben, the wildcard should be Ben, not BEN.

This pull request updates use of casing to return casing as inputted by user. If developer wants input to be all uppercase, they can .toUpperCase() their input before calling findAnswerInLoadedAIMLFiles().