grex
grex copied to clipboard
isFloat() returns true for some GUIDs
In argument.js
, isFloat()
returns true for the following string "865fe326-2d1c-44a6-8719-d3c108fd649f"
I think the solution would be to check for
// Handle ids that are not numbers but pass parseFloat test
// (ie. Titan edge ids)
if (_.isString(argument) && this.isFloat()) {
return "'" + argument + "'";
}
before
if (this.isFloat()) {
return this.value;
}