Class: HomographicSpoofing::Detector::Rule::QuotedString::Nfc

Inherits:
Base
  • Object
show all
Defined in:
lib/homographic_spoofing/detector/rule/quoted_string/nfc.rb

Overview

Instance Method Summary collapse

Instance Method Details

#attack_detected?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/homographic_spoofing/detector/rule/quoted_string/nfc.rb', line 3

def attack_detected?
  !label.unicode_normalized?(:nfc)
end