Skip to content

Commit 0b90867

Browse files
committed
Make @ a non-atomic character
1 parent d3ad019 commit 0b90867

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for the Python package RiveScript.
22

3+
1.8.1 Nov 19 2015
4+
- Add `@` to the list of characters that disqualifies a trigger from being
5+
considered "atomic"
6+
37
1.8.0 Oct 10 2015
48
- New algorithm for handling variable tags (<get>, <set>, <add>, <sub>,
59
<mult>, <div>, <bot> and <env>) that allows for iterative nesting of

python-rivescript.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%global desc A scripting language to make it easy to write responses for a chatterbot.
44

55
Name: python-%{srcname}
6-
Version: 1.8.0
6+
Version: 1.8.1
77
Release: 1%{?dist}
88
Summary: %{sum}
99

rivescript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
__docformat__ = 'plaintext'
4040

4141
__all__ = ['rivescript']
42-
__version__ = '1.8.0'
42+
__version__ = '1.8.1'
4343

4444
from .rivescript import RiveScript, RiveScriptError, NoMatchError, NoReplyError,\
4545
ObjectError, DeepRecursionError, NoDefaultRandomTopicError, RepliesNotSortedError

rivescript/rivescript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ def _is_atomic(self, trigger):
23962396
# Atomic triggers don't contain any wildcards or parenthesis or anything
23972397
# of the sort. We don't need to test the full character set, just left
23982398
# brackets will do.
2399-
special = ['*', '#', '_', '(', '[', '<']
2399+
special = ['*', '#', '_', '(', '[', '<', '@']
24002400
for char in special:
24012401
if char in trigger:
24022402
return False

0 commit comments

Comments
 (0)