We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c16b3 commit c6b4942Copy full SHA for c6b4942
1 file changed
readNonMat.js
@@ -61,7 +61,7 @@ function addConstrToArr(cj, x, elNLArr, dualCheck, noOfEmptyRows,
61
62
// Obtain coeff of x[i] for constraint j
63
var varName = x[i];
64
- var regex = new RegExp(`[+-]*[0-9/]*${varName}`);
+ var regex = new RegExp(`[+-]*[0-9./]*${varName}`);
65
if (constrLHS.match(regex)) {
66
var coeff = constrLHS.match(regex).join("").replace(varName, "");
67
if (!coeff.match(/[0-9]/)) {
0 commit comments