Skip to content

Commit f4486f0

Browse files
committed
Unicode Character Bug Fix
Fixed minor bug where some Unicode characters inside the <pattern> tag weren't being transposed into the <star> tag, as per Program-O/Program-O#56
1 parent b71200b commit f4486f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatbot/core/aiml/parse_aiml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function set_wildcards($convoArr)
296296
$checkagainst = $convoArr['aiml']['user_raw'];
297297
}
298298
runDebug(__FILE__, __FUNCTION__, __LINE__, "Checking '$ap' against '$checkagainst'.", 2);
299-
if (preg_match_all("~$ap~si", $checkagainst, $matches))
299+
if (preg_match_all("~$ap~siu", $checkagainst, $matches))
300300
{
301301
runDebug(__FILE__, __FUNCTION__, __LINE__, print_r($matches, true), 2);
302302
for ($i = 1; $i < count($matches); $i++)

0 commit comments

Comments
 (0)