Pattern matching not work in a right way #27

Open
opened 2025-10-14 17:27:41 -06:00 by navan · 0 comments
Owner

Originally created by @haonguyen1915 on 11/11/2021

Hi
When I created an aiml like this:

<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
    <category>
        <pattern>^ hello</pattern>
        <template>
            hello
        </template>
    </category>

    <category>
        <pattern>^ LA AI </pattern>
        <template>something</template>
    </category>

</aiml>

When I typing hello hello -> There is no matching found
But I made a small modify, changing from ^ to * or remove second partern then it works well

<aiml version="2.0">
    <category>
        <pattern>* hello</pattern>
        <template>
            hello
        </template>
    </category>

    <category>
        <pattern>^ LÀ AI </pattern>
        <template>Kinh tom</template>
    </category>

</aiml>

or

<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
    <category>
        <pattern>^ hello</pattern>
        <template>
            hello
        </template>
    </category>
</aiml>

Please tell me know why? I think it's a bug
Thank you so much!

*Originally created by @haonguyen1915 on 11/11/2021* Hi When I created an aiml like this: ``` <?xml version="1.0" encoding="UTF-8"?> <aiml version="2.0"> <category> <pattern>^ hello</pattern> <template> hello </template> </category> <category> <pattern>^ LA AI </pattern> <template>something</template> </category> </aiml> ``` When I typing *hello hello* -> There is no matching found But I made a small modify, changing from ^ to * or remove second partern then it works well ``` <aiml version="2.0"> <category> <pattern>* hello</pattern> <template> hello </template> </category> <category> <pattern>^ LÀ AI </pattern> <template>Kinh tom</template> </category> </aiml> ``` or ```xml <?xml version="1.0" encoding="UTF-8"?> <aiml version="2.0"> <category> <pattern>^ hello</pattern> <template> hello </template> </category> </aiml> ``` Please tell me know why? I think it's a bug Thank you so much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/program-y#27
No description provided.