Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern matching not work in a right way #299

Open
haonguyen1915 opened this issue Nov 11, 2021 · 0 comments
Open

Pattern matching not work in a right way #299

haonguyen1915 opened this issue Nov 11, 2021 · 0 comments

Comments

@haonguyen1915
Copy link

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!

@haonguyen1915 haonguyen1915 changed the title Pattern not work in a right way Pattern matching not work in a right way Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant