[Libreoffice-bugs] [Bug 130863] AUTO-REDACT: Disable 'Case Sensitive' checkbox + 'Whole word' checkbox when the 'Regular expression' option is selected

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 5 14:04:08 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=130863

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cno at nouenoff.nl,
                   |                            |erack at redhat.com

--- Comment #25 from Julien Nabet <serval2412 at yahoo.fr> ---
Cor/Eike: I noticed my patch https://gerrit.libreoffice.org/c/core/+/100169
failed with on gerrit:
FAIL: test_tdf44398_find_replace_regexp_string (tdf44398.tdf44398)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/qa/uitest/search_replace/tdf44398.py",
line 90, in test_tdf44398_find_replace_regexp_string
    self.assertEqual(get_cell_by_position(document, 0, 0, 0).getString(), " Var
Number A")
AssertionError: ' V a r N u m b e r A' != ' Var Number A'
-  V a r N u m b e r A
?   - -   - - - - -
+  Var Number A
(See https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/65620/console)

Does it mean regexp engine doesn't work here?
Indeed, the test contains:
     70         xDialog = self.xUITest.getTopFocusWindow()
     71         searchterm = xDialog.getChild("searchterm")
     72         searchterm.executeAction("TYPE",
mkPropertyValues({"KEYCODE":"CTRL+A"}))
     73         searchterm.executeAction("TYPE",
mkPropertyValues({"KEYCODE":"BACKSPACE"}))
     74         searchterm.executeAction("TYPE",
mkPropertyValues({"TEXT":"([A-Z])"}))
     75         replaceterm = xDialog.getChild("replaceterm")

So it's not [A-Z][a-z], it should take account only on letters with uppercase.

Remark: I can't reproduce the pb locally even why trying "make sc.check" or
"make sc.slowcheck"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200805/e1f101a9/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list