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
f40d8c530f
SedRegex: bump copyright year to 2017
...
From: 0ef8138ab3
2020-01-01 21:55:58 -08:00
James Lu
90ec8a6976
SedRegex: fix some replacement queries not working
...
From: 926454b01d
2020-01-01 21:55:58 -08:00
James Lu
6445e90ec7
SedRegex: also catch errors in the regexp_wrapper() step
...
E.g. sre_constants.error: invalid group reference
From: e137d29eb9
2020-01-01 21:55:58 -08:00
James Lu
5370296bbf
SedRegex: log the exact error name instead of "SedRegex error"
...
From: 406d7b1790
2020-01-01 21:55:58 -08:00
James Lu
dee2b6bdb3
SedRegex: require ending delimiter to prevent overzealous matching of replacement text
...
Closes #59 .
From: 414a4a4a16
2020-01-01 21:55:58 -08:00
James Lu
656d2172db
SedRegex: work around "nothing to replace" errors on < Python 2.7.6 again
...
From: 244a8c6bee
2020-01-01 21:55:58 -08:00
James Lu
889c6a1615
SedRegex: fix flag matching
...
From: db125ee5d1
2020-01-01 21:55:58 -08:00
James Lu
c1c423cc0d
SedRegex: add configuration / usage instructions
...
From: 9d0dce6ef5
2020-01-01 21:55:58 -08:00
James Lu
24ae250ac4
SedRegex: implement 's' regex flag to only match the caller's message
...
From: 87c79db3d0
2020-01-01 21:55:58 -08:00
James Lu
bd0b1158fc
SedRegex: allow free form flags and return them in _unpack_sed()
...
From: 423da9f996
2020-01-01 21:55:58 -08:00
James Lu
c1e2e2b8a6
SedRegex: sanitize against \n\r\t in output
...
From: 48445e256a
2020-01-01 21:55:58 -08:00
James Lu
00f26b0a73
SedRegex: only operate on messages from the current network
...
Reported by @jztech101.
The 'receivedBy' tag is now checked to match the current IRC object, which Works around ProgVal/Limnoria#1211 .
From: 84b94d589c
2020-01-01 21:55:58 -08:00
James Lu
fa13c68ebc
SedRegex: work around "nothing to repeat" errors on Python < 2.7.6
...
Source: https://stackoverflow.com/questions/3675144/regex-error-nothing-to-repeat and https://bugs.python.org/issue18647
From: 335fc6e3da
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