package sanitize

import "git.sr.ht/~seirdy/moac/v2/internal/sanitize"

Package sanitize implements detection and/or removal of unwanted characters in strings.

Index

Package Files

sanitize.go

func FilterStrings

func FilterStrings(customCharsets []string) (sanitizedCharsets, badCharsets []string)

FilterStrings removes bad runes from customCharsets, returning the result with the violating strings. sanitizedCharsets is customCharsets with all nonprintable or mark runes removed. badCharsets is the strings in customCharsets that contained such runes.

Version
v2.0.2 (latest)
Published
Oct 5, 2021
Platform
linux/amd64
Imports
2 packages (graph)
Last checked
2 weeks ago

Tools for package owners.