Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
function onlyHasChars
Re-export
import { onlyHasChars } from "https://deno.land/x/earthstar@v9.3.3/src/entries/universal.ts";

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

Parameters

str: string
allowedChars: string

Returns

boolean