lib/diacritics.js
function replaceSensitive(chr, dbl) {

		var result,
		    dbl_result;

		if (typeof baseDiacriticsMap[chr] === 'undefined') {
			return chr;
		}

		result = '[' + chr
		result += baseDiacriticsMap[chr];
		result += ']';

		if (dbl && baseDiacriticsMap[dbl]) {
			dbl_result = baseDiacriticsMap[dbl];

			// Make the previous group optional,
			// but do require one of these groups then
			result = '?(?:' + result + '|[' + dbl_result + '])';
		}

		return result;
	}
function replaceSensitive(chr, dbl) {

		var result,
		    dbl_result;

		if (typeof baseDiacriticsMap[chr] === 'undefined') {
			return chr;
		}

		result = '[' + chr
		result += baseDiacriticsMap[chr];
		result += ']';

		if (dbl && baseDiacriticsMap[dbl]) {
			dbl_result = baseDiacriticsMap[dbl];

			// Make the previous group optional,
			// but do require one of these groups then
			result = '?(?:' + result + '|[' + dbl_result + '])';
		}

		return result;
	}
function replaceSensitive ( chr , dbl ) { var result , dbl_result ; if ( typeof baseDiacriticsMap [ chr ] === 'undefined' ) { return chr ; } result = '[' + chr result += baseDiacriticsMap [ chr ] ; result += ']' ; if ( dbl && baseDiacriticsMap [ dbl ] ) { dbl_result = baseDiacriticsMap [ dbl ] ; // Make the previous group optional, // but do require one of these groups then result = '?(?:' + result + '|[' + dbl_result + '])' ; } return result ; }
Replace the given character, but remain case sensitive

@author   Jelle De Loecker   <jelle@develry.be>
@since    0.0.1
@version  0.6.4
Replace the given character but remain case sensitive