import re

from django.forms.fields import RegexField
from django.utils.translation import ugettext_lazy as _


# Match any number of alpha-numeric characters or a single * character.
trigger_re = re.compile(r'^(?:(?:\w)+|(?:\*)?)$')


class CommandTriggerField(RegexField):
    """Form field for a Shortwave command trigger."""

    default_error_messages = {
        'invalid': _(u'Enter a valid trigger.'),
    }

    def __init__(self, max_length=None, min_length=None, *args, **kwargs):
        RegexField.__init__(self, trigger_re, max_length, min_length, *args,
                            **kwargs)

@@ -164,17 +164,19 @@
  single 
-*
+%60*%60
  charact
@@ -230,17 +230,16 @@
 )?)$')%0A%0A
-%0A
 class Co
@@ -276,16 +276,21 @@
 %0A    %22%22%22
+%0A    
 Form fie
@@ -324,16 +324,91 @@
 trigger.
+%0A%0A    Valid values are any number of alpha-numeric characters or %60*%60.%0A%0A    
 %22%22%22%0A%0A   

Add to CommandTriggerField docstring.