Confirmed users, Bureaucrats and Sysops emeriti
419
edits
| Line 39: | Line 39: | ||
=== Functions === | === Functions === | ||
(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 | (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 on failure, which converts to false; or the matching prefix string on success.) | ||
Let origin(s) = (s matches `scheme://hostpart`) || unknown. | Let origin(s) = (s matches `scheme://hostpart`) || unknown. | ||