James Lu
5ee63ebe96
SedRegex: test "nick, " prefix for explicit reference as well as "nick: "
2020-10-18 13:44:05 -07:00
James Lu
6c138d66ba
SedRegex: follow config preference for strictRfc checking
...
Also add some tests to check that nicks containing the sed separator character are handled correctly.
2020-10-18 13:44:05 -07:00
James Lu
9adb4f0e8c
SedRegex: ignore regexp-like messages sent before the plugin is active
...
Reported by fred` at #limnoria.
This adds a new message tag applied to all messages SedRegex has seen, in addition to the one for marking messages parsed as a regexp.
SedRegex will now look through the message history and check that all messages without the "seen" tag are not in fact a regexp, before
marking it as seen so that it doesn't do repeated work.
2020-10-12 19:45:18 -07:00
James Lu
ffa24bf56e
SedRegex: add a no match test case
2020-10-12 18:53:54 -07:00
Valentin Lorentz
2953126fca
test: Make assertNoResponse default to a non-zero timeout for threaded plugins.
...
Else it doesn't reliably check there is no response.
2020-04-11 00:17:16 +02:00
Valentin Lorentz
7e48ba0ba8
SedRegex: Use assertSnarfNoResponse instead of assertNoResponse.
...
assertNoResponse was only passing by accident on faster machines.
2020-04-11 00:16:01 +02:00
James Lu
c212ee0e5e
SedRegex: allow matching text with the trailing suffix missing
...
From: 866875ec5d
2020-04-02 10:00:40 -07:00
James Lu
c399272173
SedRegex: make callback matching case sensitive
...
This fixes a TypeError issue mentioned in d296bbb949
.
2020-04-02 10:00:39 -07:00
James Lu
13c03716c5
Revert "SedRegex: Make pattern case-insensitive."
...
This reverts commit d296bbb949
.
2020-04-02 09:47:32 -07:00
Valentin Lorentz
d296bbb949
SedRegex: Make pattern case-insensitive.
...
To fixes a mismatch between callbacks, which use flags=re.I by default,
and SED_REGEX.search which isn't; so 'S/foo/bar/' errored because it
matches case-insensitively so _unpack_sed is entered, but then _unpack_sed
fails to match it case-sensitively.
2020-04-02 17:30:57 +02:00
James Lu
d3b991895c
SedRegex: skip testReDoSTimeout if multiprocessing is disabled
2020-01-27 08:00:46 -08:00
James Lu
9e0db63b5b
SedRegex: add test for ReDoS timeout
...
From: 81debc45ec
2020-01-01 21:55:58 -08:00
James Lu
6c54352713
SedRegex: test case normalization of channel names
...
From: 5672008a31
2020-01-01 21:55:58 -08:00
James Lu
1646ca25c2
SedRegex: skip testBoldReplacement on Python 2
...
I don't know why it breaks here and I don't really care.
From: b9481184cb
2020-01-01 21:55:58 -08:00
James Lu
dcadb7e73b
SedRegex: remove a duplicate test
...
From: 5e77c65a5f
2020-01-01 21:55:58 -08:00
James Lu
01e0c12641
SedRegex: use self.__class__ instead of __class__ in tests (Python 2 compat)
...
From: b53e6e40a0
2020-01-01 21:55:58 -08:00
James Lu
b01c50cd4d
SedRegex: add a bunch of test cases
...
Closes #53 .
From: a58785fa4a
2020-01-01 21:55:58 -08:00
James Lu
1499141f09
Import SedRegex plugin as of 2a556a1b84
...
Co-authored-by: Michael Daniel Telatynski <postmaster@webdevguru.co.uk>
Co-authored-by: nyuszika7h <nyuszika7h@openmailbox.org>
2020-01-01 21:55:57 -08:00