v.25.10Improvement

Function hasToken now returns zero matches

Function hasToken now returns zero matches for the empty token (whereas this previously threw an exception). #87564 (Jimmy Aguilar Mena).
The hasToken function is updated to return zero matches when given an empty token instead of throwing an exception.

Why it matters

This change improves the robustness of the hasToken function by preventing exceptions caused by empty tokens, ensuring smoother query execution and better error handling when token inputs are empty.

How to use it

Users can simply use the hasToken function as before. When providing an empty string as the token argument, the function will now return zero matches instead of causing an error, requiring no additional action.