mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-30 12:27:02 +02:00
String: Display regex error on invalid group reference (#1537)
This commit is contained in:
parent
416a05e326
commit
6021f0e6d9
@ -218,6 +218,7 @@ class String(callbacks.Plugin):
|
|||||||
s/regexp/replacement/flags, returns the result of applying such a
|
s/regexp/replacement/flags, returns the result of applying such a
|
||||||
regexp to <text>.
|
regexp to <text>.
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
if f('') and len(f(' ')) > len(f(''))+1: # Matches the empty string.
|
if f('') and len(f(' ')) > len(f(''))+1: # Matches the empty string.
|
||||||
s = _('You probably don\'t want to match the empty string.')
|
s = _('You probably don\'t want to match the empty string.')
|
||||||
irc.error(s)
|
irc.error(s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user