MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / deburr

Function deburr

lib/web/jshint.js:11619–11622  ·  view source on GitHub ↗

* Deburrs `string` by converting [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) * to basic latin letters and removing [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @stati

(string)

Source from the content-addressed store, hash-verified

11617 * // => 'deja vu'
11618 */
11619 function deburr(string) {
11620 string = baseToString(string);
11621 return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, '');
11622 }
11623
11624 /**
11625 * Checks if `string` ends with the given target string.

Callers 1

createCompounderFunction · 0.85

Calls 2

baseToStringFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected