Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/entries/universal.ts>onlyHasChars

Storage for private, distributed, offline-first applications.
Go to Latest
function onlyHasChars
Re-export
import { onlyHasChars } from "https://deno.land/x/earthstar@v10.0.1/src/entries/universal.ts";

Check that a string only contains character from a string of allowed characters.

Parameters

str: string
allowedChars: string

Returns

boolean