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:
``` dlg_match_profile("profilename", "regex", ".*") ``` 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.