Skip to content

Commit

Permalink
Rename MOZZILLA_DISALLOWED_CHARACTERS to MOZILLA_*
Browse files Browse the repository at this point in the history
  • Loading branch information
davidarendsen authored Nov 27, 2024
1 parent f6eb674 commit b1964b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class HomographicSpoofing::Detector::Rule::DisallowedCharacters < HomographicSpoofing::Detector::Rule::Base
class << self
# See http://kb.mozillazine.org/Network.IDN.blacklist_chars
MOZZILLA_DISALLOWED_CHARACTERS = Set[
MOZILLA_DISALLOWED_CHARACTERS = Set[
"\u0020", # Space
"\u00a0", # No-break space
"\u00bc", # Vulgar fraction one quarter
Expand Down Expand Up @@ -124,7 +124,7 @@ class << self
]

def allowed_chars_set
@@allowed_chars_set ||= (read_allowed_idn_chars.chars.to_set - MOZZILLA_DISALLOWED_CHARACTERS)
@@allowed_chars_set ||= (read_allowed_idn_chars.chars.to_set - MOZILLA_DISALLOWED_CHARACTERS)
end

private
Expand Down

0 comments on commit b1964b2

Please sign in to comment.