Skip to content

Step-9 Validation

Latest
Compare
Choose a tag to compare
@DehuaZhao DehuaZhao released this 18 Aug 14:52
  • Use regexp package and create the global variable validPath to store our validation expression.
  • Add the function getTitle that uses the validPath expression to validate path and extract the page title.
  • Put a call to getTitle in each of the handlers.