Skip to content

Commit 495f0e9

Browse files
davidarendsenintrip
authored andcommitted
Rename MOZZILLA_DISALLOWED_CHARACTERS to MOZILLA_*
1 parent 85aa59b commit 495f0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/homographic_spoofing/detector/rule/disallowed_characters.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
class HomographicSpoofing::Detector::Rule::DisallowedCharacters < HomographicSpoofing::Detector::Rule::Base
33
class << self
44
# See http://kb.mozillazine.org/Network.IDN.blacklist_chars
5-
MOZZILLA_DISALLOWED_CHARACTERS = Set[
5+
MOZILLA_DISALLOWED_CHARACTERS = Set[
66
"\u0020", # Space
77
"\u00a0", # No-break space
88
"\u00bc", # Vulgar fraction one quarter
@@ -124,7 +124,7 @@ class << self
124124
]
125125

126126
def allowed_chars_set
127-
@@allowed_chars_set ||= (read_allowed_idn_chars.chars.to_set - MOZZILLA_DISALLOWED_CHARACTERS)
127+
@@allowed_chars_set ||= (read_allowed_idn_chars.chars.to_set - MOZILLA_DISALLOWED_CHARACTERS)
128128
end
129129

130130
private

0 commit comments

Comments
 (0)