parse static method

CrunchbasePersonUrl? parse(
  1. String url
)

Implementation

static CrunchbasePersonUrl? parse(String url) {
  var matches = RegExp(
          r'(?:https?:)?\/\/crunchbase\.com\/person\/(?<person>[A-z0-9_-]+)')
      .allMatches(url);
  var person = matches.getValue("person");
  if (person == null) return null;
  return CrunchbasePersonUrl._(person);
}