(self, trigger)
Precompile the regex for most triggers.

        If the trigger is non-atomic, and doesn't include dynamic tags like
        `<bot>`, `<get>`, `<input>/<reply>` or arrays, it can be precompiled
        and save time when matching.
Precompile the regex for most triggers.
Precompile the regex for most triggers .
def _precompile_regexp(self, trigger):
        """Precompile the regex for most triggers.

        If the trigger is non-atomic, and doesn't include dynamic tags like
        `<bot>`, `<get>`, `<input>/<reply>` or arrays, it can be precompiled
        and save time when matching."""
        if self._is_atomic(trigger):
            return  # Don't need a regexp for atomic triggers.

        # Check for dynamic tags.
        for tag in ["@", "<bot", "<get", "<input", "<reply"]:
            if tag in trigger:
                return  # Can't precompile this trigger.

        self._regexc["trigger"][trigger] = self._reply_regexp(None, trigger)
def _precompile_regexp ( self , trigger ) : if self . _is_atomic ( trigger ) : return # Don't need a regexp for atomic triggers. # Check for dynamic tags. for tag in [ "@" , "<bot" , "<get" , "<input" , "<reply" ] : if tag in trigger : return # Can't precompile this trigger. self . _regexc [ "trigger" ] [ trigger ] = self . _reply_regexp ( None , trigger )