Skip to content

Commit

Permalink
Make @ a non-atomic character
Browse files Browse the repository at this point in the history
  • Loading branch information
kirsle committed Nov 20, 2015
1 parent d3ad019 commit 0b90867
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Revision history for the Python package RiveScript.

1.8.1 Nov 19 2015
- Add `@` to the list of characters that disqualifies a trigger from being
considered "atomic"

1.8.0 Oct 10 2015
- New algorithm for handling variable tags (<get>, <set>, <add>, <sub>,
<mult>, <div>, <bot> and <env>) that allows for iterative nesting of
Expand Down
2 changes: 1 addition & 1 deletion python-rivescript.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global desc A scripting language to make it easy to write responses for a chatterbot.

Name: python-%{srcname}
Version: 1.8.0
Version: 1.8.1
Release: 1%{?dist}
Summary: %{sum}

Expand Down
2 changes: 1 addition & 1 deletion rivescript/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
__docformat__ = 'plaintext'

__all__ = ['rivescript']
__version__ = '1.8.0'
__version__ = '1.8.1'

from .rivescript import RiveScript, RiveScriptError, NoMatchError, NoReplyError,\
ObjectError, DeepRecursionError, NoDefaultRandomTopicError, RepliesNotSortedError
2 changes: 1 addition & 1 deletion rivescript/rivescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,7 @@ def _is_atomic(self, trigger):
# Atomic triggers don't contain any wildcards or parenthesis or anything
# of the sort. We don't need to test the full character set, just left
# brackets will do.
special = ['*', '#', '_', '(', '[', '<']
special = ['*', '#', '_', '(', '[', '<', '@']
for char in special:
if char in trigger:
return False
Expand Down

0 comments on commit 0b90867

Please sign in to comment.