classroom/public/lessons/CertificateTest/js/CertificationAudioTest.js
//Remove All Special Characters to match strings

Remove All Special Characters to match strings
Remove All Special Characters to match strings
function removeSpecialCharacter(m){
	var meaning = m ; 
	meaning = meaning.replace(/[!-.,;¡¿?'"「」’]/g, '');
	meaning = meaning.replace(/[‘’“”''""’'「 」 ‒ – — ― ‐ -]/g, '');
	meaning = meaning.replace(/\//g, '');
	meaning = meaning.replace(/[áāǎàĀÁǍÀ]/g,'a');
	meaning = meaning.replace(/[éēěèĒÉĚÈ]/g,'e');
	meaning = meaning.replace(/[ííīíǐìĪÍǏÌ]/g,'i');
	meaning = meaning.replace(/[óōóǒòŌÓǑÒ]/g,'o');
	meaning = meaning.replace(/[úüūúǔùǖǘǚǜŪÚǓÙǕǗǙÜ]/g,'u');
	meaning = meaning.replace(/[ññññ]/g,'n');
	meaning = meaning.replace(/[ü]/g,'u');
	meaning = meaning.replace(/^\s+|\s+$/g,'');
	return meaning;
}
function removeSpecialCharacter ( m ) { var meaning = m ; meaning = meaning . replace ( / [!-.,;¡¿?'"「」’]/g, ''); meaning = meaning . replace ( / [‘’“”''""’'「 」 ‒ – — ― ‐ -]/g, '');
 meaning = meaning . replace ( / \/ / g , '' ) ; meaning = meaning . replace ( / [áāǎàĀÁǍÀ]/g,'a'); meaning = meaning . replace ( / [éēěèĒÉĚÈ]/g,'e'); meaning = meaning . replace ( / [ííīíǐìĪÍǏÌ]/g,'i');
 meaning = meaning . replace ( / [óōóǒòŌÓǑÒ]/g,'o');
 meaning = meaning . replace ( / [úüūúǔùǖǘǚǜŪÚǓÙǕǗǙÜ]/g,'u');
 meaning = meaning . replace ( / [ññññ]/g,' n ' ) ;
 meaning = meaning . replace ( / [ü]/ g , ' u') ; meaning = meaning . replace ( / ^\s+|\s+$ / g , '' ) ; return meaning ; }
Remove All Special Characters to match strings
Remove All Special Characters to match strings