source/utilities/isRegexString/isRegexString.js
/**
 * Determines whether a string is in the shape of a regex
 * @param {string} filter
 * @return {boolean}
 */
Determines whether a string is in the shape of a regex
@param {string} filter
@return {boolean}
Determines whether a string is in the shape of a regex @param { string } filter @return { boolean }
function isRegexString(filter) {
  return filter.length > 2
    && filter.startsWith("/")
    && filter.endsWith("/")
}
function isRegexString ( filter ) { return filter . length > 2 && filter . startsWith ( "/" ) && filter . endsWith ( "/" ) }
Determines whether a string is in the shape of a regex
 @param {string} filter
 @return {boolean}
Determines whether a string is in the shape of a regex @param { string } filter @return { boolean }