Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions AIMLInterpreter.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,11 @@ var findCorrectCategory = function(clientInput, domCategories){
//after all special functions (bot, get, set,...) were resolved
//return that text
text = resolveSpecialNodes(childNodesOfTemplate);
if((text.match('[\\n|\\t]*[^A-Z|^a-z|^1-9|^!|^?]*')[0] === '') && (text.indexOf('function ()') === -1)){
return (text);
//if((text.match('[\\n|\\t]*[^A-Z|^a-z|^1-9|^!|^?]*')[0] === '') && (text.indexOf('function ()') === -1)){
//return (text);
//}
if(text.indexOf('function ()') === -1){
return text;
}
}
}
Expand Down