Crash because of invalid multibyte char (US-ASCII) - regex.rb #372

Closed
andreasunterhuber opened this Issue Jul 27, 2013 · 4 comments

Projects

None yet

5 participants

@andreasunterhuber
Contributor

Crash in ruby 1.9.3 and rails 4.0 because of => invalid multibyte char (US-ASCII)
in file => /lib/authlogic/regex.rb:15: invalid multibyte char (US-ASCII) (SyntaxError)
string causing problem => онлайн

Thanks for adding a "#encoding: UTF-8" at the beginning of the file ...
... yes in ruby 2.0 not needed, but 1.9.3 needs ;)

Thanks!

@astangel

Also crashing for Rails 3.2.1 (Rails 1.9.3)

@vanboom
vanboom commented Aug 26, 2013

master...
domain_tld_regex = '(?:[A-Z]{2,4}|museum|travel|онлайн)'

previous working version
domain_tld_regex = '(?:[A-Z]{2,4}|museum|travel)'

Please remove the: онлайн domain -- it is causing the invalid multibyte character error

@lukeasrodgers
Contributor

I think this can be closed, should have been fixed by 03886b4 (and also e5daee6 which removes the offending characters entirely).

@tiegz
Collaborator
tiegz commented Mar 1, 2015

Thanks @lukeasrodgers 👍

@tiegz tiegz closed this Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment