Skip to content

Commit

Permalink
fix:__isSameValue38
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Feb 13, 2025
1 parent 0e67652 commit 2b3cf89
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/resources/web/assets/js/general/rb-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -3337,10 +3337,14 @@ const __calcFormula = function (fieldComp) {
}
function __isSameValue38(a, b) {
if ($same(a, b)) return true
try {
// eslint-disable-next-line eqeqeq
return parseFloat(a) == parseFloat(b)
} catch (err) {
// ignored
// fix: 3.9.4
if ($regex.isDecimal(a) && $regex.isDecimal(b)) {
try {
// eslint-disable-next-line eqeqeq
return parseFloat(a) == parseFloat(b)
} catch (err) {
// ignored
}
}
return false
}

0 comments on commit 2b3cf89

Please sign in to comment.