Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 797 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 797 Bytes

confusables

GoDoc Build Status Go Report Card

Unicode confusable detection

Overview

package main

import (
	"fmt"

	"github.com/eskriett/confusables"
)

func main() {
	fmt.Println(confusables.ToSkeleton("𝐞х⍺𝓂𝕡Іꬲ"))
	// exarnple

	fmt.Println(confusables.IsConfusable("example", "𝐞х⍺𝓂𝕡Іꬲ"))
	// true

	fmt.Println(confusables.IsConfusable("example", "𝐞х⍺𝓂𝕡І"))
	// false
}