sc/source/core/tool/interpr1.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

New commits:
commit 51abf44808c6793a184e986b62c0786753e11ded
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Thu Apr 11 21:49:21 2024 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Fri Apr 12 10:22:59 2024 +0200

    Related: tdf#127293 Fix regex search mode in XLOOKUP wildcards mode
    
    If relevant Option in Calc was set for regex, xlookup still used the
    wildcard search mode.
    
    Change-Id: I318c3f368b6f59644c43ec518542910be72a5e0c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166015
    Tested-by: Jenkins
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 8ea81b336641..6f3c3304e627 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -11455,14 +11455,7 @@ bool ScInterpreter::SearchVectorForValue( 
VectorSearchArguments& vsa )
                     if ( mrDoc.IsInVBAMode() )
                         rParam.eSearchType = 
utl::SearchParam::SearchType::Wildcard;
                     else
-                    {
-                        // set searchtype hard to wildcard or regexp if 
applicable, the XLOOKUP
-                        // argument prevails over the configuration setting
-                        if ( MayBeWildcard( vsa.sSearchStr.getString() ) )
-                            rParam.eSearchType = 
utl::SearchParam::SearchType::Wildcard;
-                        else if ( MayBeRegExp( vsa.sSearchStr.getString() ) )
-                            rParam.eSearchType = 
utl::SearchParam::SearchType::Regexp;
-                    }
+                        rParam.eSearchType = 
DetectSearchType(vsa.sSearchStr.getString(), mrDoc);
                 }
             }
             else

Reply via email to