9 |
|
|
10 |
|
void Page::setUrl(const ext::String& url) |
11 |
|
{ |
12 |
< |
Matcher matcher("^http://(.+)(/.*)?$"); |
12 |
> |
api::Cerr << PCRE_MULTILINE << " = " << Matcher::defaults << ios::NewLine; |
13 |
> |
|
14 |
> |
Matcher matcher("^http://(.+)(/.*)?$", (PCRE_UNGREEDY | PCRE_DOTALL)); |
15 |
> |
|
16 |
> |
api::Cerr << (PCRE_UNGREEDY | PCRE_DOTALL) << " = " << matcher.options << ios::NewLine; |
17 |
|
|
18 |
|
if (url == matcher) |
19 |
|
{ |
25 |
|
{ |
26 |
|
api::Cerr << program << ": Page.setUrl(" << url << ") failure.\n"; |
27 |
|
|
28 |
< |
std::exit(1); |
28 |
> |
throw; |
29 |
|
} |
30 |
|
} |
31 |
|
|