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
dialog doc does not match code #1320
Comments
After looking at code and its history, likely the description was made wrong. I pushed a patch to reflect properly the code behaviour in the docs. On the other hand, it could be useful to add a function with more flexible matching of the profile, where to have something like:
to return true for matching any value. The second param to be the operator to use, like "equal", "starts_with", "regex" ... If anyone needs something like this, then open a feature request. I am closing this issue. |
Documentation:
7.3. is_in_profile(profile,[value])
Checks if the current dialog belongs to a profile. If the profile supports values, the check can be reinforced to take into account a specific value, if the dialog was inserted into the profile for a specific value. If no value is passed, only the membership of the dialog in the profile per se is checked. Note that if the profile does not support values, the value parameter will be silently discarded.
Code:
Expected result: Documentation should be corrected, or even better, code should be updated to perform as documented.
The text was updated successfully, but these errors were encountered: