You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! There is an error when parentheses or square brackets in password and using dictionary adjuster:
2.0.0-p0 :001 > checker = StrongPassword::StrengthChecker.new('asdf)asdf')
=> #<StrongPassword::StrengthChecker:0xcdf0f28 @base_password="asdf)asdf">
2.0.0-p0 :002 > checker.calculate_entropy(:use_dictionary => true)
RegexpError: unmatched close parenthesis: /\bxcv)(z(x(c(v)?)?)?)?\b/
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:87:in `block in adjusted_entropy'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:75:in `each'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:75:in `each_with_index'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:75:in `adjusted_entropy'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/strength_checker.rb:33:in `calculate_entropy'
from (irb):2
2.0.0-p0 :003 > checker = StrongPassword::StrengthChecker.new('asdf[]asdf')
=> #<StrongPassword::StrengthChecker:0xccba064 @base_password="asdf[]asdf">
2.0.0-p0 :004 > checker.calculate_entropy(:use_dictionary => true)
RegexpError: premature end of char-class: /\bxcv[(\](z(x(c(v)?)?)?)?)?\b/
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:87:in `block in adjusted_entropy'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:75:in `each'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:75:in `each_with_index'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/dictionary_adjuster.rb:75:in `adjusted_entropy'
from /home/gsmetal/.rvm/gems/ruby-2.0.0-p0/gems/strong_password-0.0.1/lib/strong_password/strength_checker.rb:33:in `calculate_entropy'
from (irb):4
The text was updated successfully, but these errors were encountered:
Hello! There is an error when parentheses or square brackets in password and using dictionary adjuster:
The text was updated successfully, but these errors were encountered: