Class: HomographicSpoofing::Detector::Rule::Local::Nfkc

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

Overview

Instance Method Summary collapse

Instance Method Details

#attack_detected?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/homographic_spoofing/detector/rule/local/nfkc.rb', line 3

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