Skip to main content
Module

x/earthstar/mod.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/mod.ts";

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

Parameters

str: string
allowedChars: string

Returns

boolean