diff options
author | Stephan Bergmann <sb@openoffice.org> | 2001-11-02 11:34:11 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2001-11-02 11:34:11 +0000 |
commit | 620c941fd6e81f6508d4a701f644b46a1f5c13d4 (patch) | |
tree | 6241fb68dce664c82931163da79e9bf035933931 /ucb | |
parent | ea6c556fb649ce6c1181730aa8605fbe148628c2 (diff) |
#94096# Fixed special handling of scheme-only regexps.
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/regexp/regexp.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ucb/source/regexp/regexp.cxx b/ucb/source/regexp/regexp.cxx index 1164182f0a9b..c58d3163eadd 100644 --- a/ucb/source/regexp/regexp.cxx +++ b/ucb/source/regexp/regexp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: regexp.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: kso $ $Date: 2000-10-16 14:53:21 $ + * last change: $Author: sb $ $Date: 2001-11-02 12:34:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -413,11 +413,16 @@ bool scanStringLiteral(sal_Unicode const ** pBegin, sal_Unicode const * pEnd, Regexp Regexp::parse(rtl::OUString const & rRegexp) { - // Detect an input of '<scheme>' as an abbreviation of '"<scheme>".*' + // Detect an input of '<scheme>' as an abbreviation of '"<scheme>:".*' // where <scheme> is as defined in RFC 2396: if (isScheme(rRegexp)) - return Regexp(Regexp::KIND_PREFIX, rRegexp, false, rtl::OUString(), - false, rtl::OUString()); + return Regexp(Regexp::KIND_PREFIX, + rRegexp + + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(":")), + false, + rtl::OUString(), + false, + rtl::OUString()); sal_Unicode const * p = rRegexp.getStr(); sal_Unicode const * pEnd = p + rRegexp.getLength(); |