keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
350 stars 135 forks source link

That clause matching wildcard issue #162

Closed fenixchen closed 6 years ago

fenixchen commented 6 years ago

Issue tracker is ONLY used for reporting bugs. NO NEW FEATURE ACCEPTED! Use stackoverflow for supporting issues.

That clause cannot match wildcard following by only one word, two words case is OK.

Expected Behavior

That clause should be matched

Current Behavior

that clause cannot be matched

Possible Solution

I think the consume function may have some issue about the case

Steps to Reproduce

Make a aiml file like this and run program-y

`

WELCOME
<category>
    <pattern>*</pattern>
    <that>^ ddd</that>
    <template>matched</template>
</category>

` Input any words cannot be matched.

If we add one word 'eee', it will be ok `

WELCOME * ^ ddd eee

` Two words is ok

Context (Environment)

Detailed Description

Possible Implementation

keiffster commented 6 years ago

Thanks for reporting the issue, I'll take a look shortly and get back to you

keiffster commented 6 years ago

I believe to be fixed now, just pushed an update to Master which fixes an issue in the THAT processing with wildcards

fenixchen commented 6 years ago

thanks for your response:-)

keiffster commented 6 years ago

Fixed