Note that the challenge does not cover all possible valid URL constructs.
Next, add that validator to the validates attribute on the CML form element you wish to validate.
As it is structured now, contributors will only pass this validator if they enter ‘passed’ into the task.
In the following article, we will first show you how to simply change the message that a contributor sees when something that they enter does not pass validation.
Next, we'll show you how to customize the validator function itself.