import { Matches , matches , ValidationOptions } from 'class-validator' ; const SAFE_STRING_REGEX = /^[^.*?{}()|[\]\t\r\n\\]*$/ ; export function isSafeString ( value ) { return matches ( value , SAFE_STRING_REGEX ) ; } export function IsSafeString ( validationOptions ? ) { return Matches ( SAFE_STRING_REGEX , validationOptions ) ; }