convnwb.utils.checks.check_str_contents

convnwb.utils.checks.check_str_contents(str_to_check, contents)[source]

Check whether a given string has specified contents.

Parameters:
str_to_checkstr

String to check contents.

contentsstr or list of str

String(s) to check whether they are contained in str_to_check.

Returns:
has_contentsbool

Indicates whether the given string contains the provided content(s).