Skip to content

Commit

Permalink
Fix invalid version condition beefproject#3051
Browse files Browse the repository at this point in the history
  • Loading branch information
zinduolis committed Sep 27, 2024
1 parent aebc994 commit 5d7fbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/filters/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.is_valid_browserversion?(str)
return false if has_non_printable_char?(str)
return true if str.eql? 'UNKNOWN'
return true if str.eql? 'ALL'
return false if !nums_only?(str) and !is_valid_float?(str)
return false if !nums_only?(str) and !str.match(/\b\d+(\.\d+)+\b/)
return false if str.length > 20

true
Expand Down

0 comments on commit 5d7fbe1

Please sign in to comment.