You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for your very helpful template functions!
Unfortunately, the documentation for the regexMatch function is a bit misleading (and contains a typo). It states that the function returns true if the input string matches the regular expression. However, it returns true if the input string contains any match. The whole input string does not have to match the regular expression. Internally, the function uses the regexp package whose documentation states as much.
The accompanying example hints at being a rudimentary email address matcher, further solidifying this incorrect intuition. However, it does not only accept email addresses, but also any other string containing an email address.
I suggest that this part of the documentation should be made a bit more explicit to reduce mistakes by potential template users.
The text was updated successfully, but these errors were encountered:
First of all, thank you for your very helpful template functions!
Unfortunately, the documentation for the
regexMatch
function is a bit misleading (and contains a typo). It states that the function returns true if the input string matches the regular expression. However, it returns true if the input string contains any match. The whole input string does not have to match the regular expression. Internally, the function uses theregexp
package whose documentation states as much.The accompanying example hints at being a rudimentary email address matcher, further solidifying this incorrect intuition. However, it does not only accept email addresses, but also any other string containing an email address.
I suggest that this part of the documentation should be made a bit more explicit to reduce mistakes by potential template users.
The text was updated successfully, but these errors were encountered: