Confirmed users, Bureaucrats and Sysops emeriti
419
edits
(→Types) |
|||
Line 39: | Line 39: | ||
=== Functions === | === Functions === | ||
(The <i>matches</i> operator takes either a string right operand to prefix-match, or a `-quoted | (The <i>matches</i> operator takes either a string right operand to prefix-match, or a `-quoted template, informally connoting a pattern to match. The result of matches is either the empty string, which converts to false, or the matching prefix string.) | ||
Let origin(s) = (s matches `scheme://hostpart`) || unknown. | Let origin(s) = (s matches `scheme://hostpart`) || unknown. |