Skip to content

Commit d297e42

Browse files
author
Marcel Overdijk
committed
Fix for {__call__} regexp replacement
1 parent 65f957b commit d297e42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rivescript-core/src/main/java/com/rivescript/RiveScript.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,8 +2005,8 @@ private String processTags(String username, String message, String reply, List<S
20052005
}
20062006

20072007
// Object caller.
2008-
reply = reply.replaceAll("\\{__call__}", "<call>");
2009-
reply = reply.replaceAll("\\{/__call__}", "</call>");
2008+
reply = reply.replaceAll("\\{__call__\\}", "<call>");
2009+
reply = reply.replaceAll("\\{/__call__\\}", "</call>");
20102010
matcher = RE_CALL.matcher(reply);
20112011
giveup = 0;
20122012
while (matcher.find()) {

0 commit comments

Comments
 (0)