From 789840f8f88f4b4311612034b6f878eae17cb6ba Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 23 Sep 2015 22:12:44 +1000 Subject: [PATCH] Allow equations to have underscores to prevent errors --- includes/libraries/class-eqeos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libraries/class-eqeos.php b/includes/libraries/class-eqeos.php index 7bdc85ac..7c004ce0 100644 --- a/includes/libraries/class-eqeos.php +++ b/includes/libraries/class-eqeos.php @@ -352,7 +352,7 @@ class eqEOS { preg_replace("/\s/", "", $infix); //Find all the variables that were passed and replaces them - while((preg_match('/(.){0,1}[&$]([a-zA-Z0-9]+)(.){0,1}/', $infix, $match)) != 0) { + while((preg_match('/(.){0,1}[&$]([a-zA-Z0-9_]+)(.){0,1}/', $infix, $match)) != 0) { //remove notices by defining if undefined. if(!isset($match[3])) {