We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85aa59b commit 495f0e9Copy full SHA for 495f0e9
lib/homographic_spoofing/detector/rule/disallowed_characters.rb
@@ -2,7 +2,7 @@
2
class HomographicSpoofing::Detector::Rule::DisallowedCharacters < HomographicSpoofing::Detector::Rule::Base
3
class << self
4
# See http://kb.mozillazine.org/Network.IDN.blacklist_chars
5
- MOZZILLA_DISALLOWED_CHARACTERS = Set[
+ MOZILLA_DISALLOWED_CHARACTERS = Set[
6
"\u0020", # Space
7
"\u00a0", # No-break space
8
"\u00bc", # Vulgar fraction one quarter
@@ -124,7 +124,7 @@ class << self
124
]
125
126
def allowed_chars_set
127
- @@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)
128
end
129
130
private
0 commit comments