lib/checks/label/label-content-name-mismatch.js
function isStringContained(compare, compareWith) {
	const curatedCompareWith = curateString(compareWith);
	const curatedCompare = curateString(compare);
	if (!curatedCompareWith || !curatedCompare) {
		return false;
	}
	return curatedCompareWith.includes(curatedCompare);
}
function isStringContained(compare, compareWith) {
	const curatedCompareWith = curateString(compareWith);
	const curatedCompare = curateString(compare);
	if (!curatedCompareWith || !curatedCompare) {
		return false;
	}
	return curatedCompareWith.includes(curatedCompare);
}
function isStringContained ( compare , compareWith ) { const curatedCompareWith = curateString ( compareWith ) ; const curatedCompare = curateString ( compare ) ; if ( ! curatedCompareWith || ! curatedCompare ) { return false ; } return curatedCompareWith . includes ( curatedCompare ) ; }
Check if a given text exists in another

@param {String} compare given text to check
@param {String} compareWith text against which to be compared
@returns {Boolean}
Check if a given text exists in another