28 Commits

Author SHA1 Message Date
James Lu
c9bcbbb934 SedRegex: remove compatibility workaround for Python 2.7.6 and lower 2017-09-01 18:19:19 -07:00
James Lu
11a03ad9a0 Bump version to 2017.05.31 2017-05-31 13:10:47 -07:00
James Lu
b9481184cb SedRegex: skip testBoldReplacement on Python 2
I don't know why it breaks here and I don't really care.
2017-03-21 13:21:40 -07:00
James Lu
5e77c65a5f SedRegex: remove a duplicate test 2017-03-21 13:14:06 -07:00
James Lu
b53e6e40a0 SedRegex: use self.__class__ instead of __class__ in tests (Python 2 compat) 2017-03-21 13:10:23 -07:00
James Lu
a58785fa4a SedRegex: add a bunch of test cases
Closes #53.
2017-03-21 12:58:12 -07:00
James Lu
22a710649e Bump version to 2017.01.16+git 2017-01-16 21:23:59 -08:00
James Lu
f97b54d709 Bump version to 2017.01.16 2017-01-16 21:16:25 -08:00
James Lu
0ef8138ab3 SedRegex: bump copyright year to 2017 2017-01-16 21:15:58 -08:00
James Lu
926454b01d SedRegex: fix some replacement queries not working 2017-01-04 20:36:45 -08:00
James Lu
e137d29eb9 SedRegex: also catch errors in the regexp_wrapper() step
E.g. sre_constants.error: invalid group reference
2016-12-26 08:05:06 -08:00
James Lu
406d7b1790 SedRegex: log the exact error name instead of "SedRegex error" 2016-12-26 08:04:20 -08:00
James Lu
414a4a4a16 SedRegex: require ending delimiter to prevent overzealous matching of replacement text
Closes #59.
2016-12-22 12:12:21 -08:00
James Lu
244a8c6bee SedRegex: work around "nothing to replace" errors on < Python 2.7.6 again 2016-12-22 12:05:00 -08:00
James Lu
db125ee5d1 SedRegex: fix flag matching 2016-12-17 21:12:36 -08:00
James Lu
9d0dce6ef5 SedRegex: add configuration / usage instructions 2016-12-17 20:49:16 -08:00
James Lu
87c79db3d0 SedRegex: implement 's' regex flag to only match the caller's message 2016-12-17 20:49:16 -08:00
James Lu
423da9f996 SedRegex: allow free form flags and return them in _unpack_sed() 2016-12-17 20:49:16 -08:00
James Lu
b6f0397665 Bump version to 2016.09.26+git 2016-09-26 11:08:14 -07:00
James Lu
23989f692e Bump version to 2016.09.26 2016-09-26 11:07:28 -07:00
James Lu
48445e256a SedRegex: sanitize against \n\r\t in output 2016-09-10 17:29:47 -07:00
James Lu
84b94d589c 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.
2016-07-20 12:48:15 -07:00
James Lu
335fc6e3da 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
2016-07-15 23:44:25 -07:00
James Lu
7c3c90ee37 Bump version to 2016.07.03+git 2016-07-03 12:49:10 -07:00
James Lu
1e96e5fd80 Bump version to 2016.07.03 2016-07-03 12:49:04 -07:00
James Lu
274027c94a Bump version to 2016.05.15+git 2016-05-15 10:28:42 -07:00
James Lu
f2d9a3a3ff Bump version to 2016.05.15 2016-05-15 10:28:39 -07:00
James Lu
2a556a1b84 Rename Replacer->SedRegex (Closes #51) 2016-05-06 21:19:28 -07:00