crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

urlmatch.cc (332B)


      1 #include "backenddef"
      2 
      3 void BackendDef::urlmatch (string const &s) {
      4     PROFILE("BackendDef::urlmatch");
      5 
      6     url_match = (s == "" ? "." : s);
      7     if (regcomp (&url_regex, url_match.c_str(),
      8 		 REG_EXTENDED | REG_ICASE | REG_NOSUB))
      9 	throw Error("Url match specifier '" +
     10 		    url_match + "' isn't a valid regular expression");
     11 }