Skip to content

Commit

Permalink
Allow equations to have underscores to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmiyaji committed Sep 23, 2015
1 parent 9eb6af6 commit 789840f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/libraries/class-eqeos.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function solveIF($infix, $vArray = null) {
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])) {
Expand Down

0 comments on commit 789840f

Please sign in to comment.