function matchesConfiguredErrorName(name) {
            if (isPattern(errorArgument)) {
                const regexp = new RegExp(errorArgument, "u")

                return regexp.test(name)
            }
            return name === errorArgument
        }
Checks if the given name matches the configured error argument.
@param {string} name The name which should be compared.
@returns {boolean} Whether or not the given name matches the configured error variable name.