Remove toString coercion method use.

This commit is contained in:
John-David Dalton
2017-03-14 23:27:37 -07:00
parent 351e44a127
commit b8a3a42278
16 changed files with 9 additions and 45 deletions

View File

@@ -1,5 +1,4 @@
import deburrLetter from './.internal/deburrLetter.js'
import toString from './toString.js'
/** Used to match Latin Unicode letters (excluding mathematical operators). */
const reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g
@@ -36,7 +35,6 @@ const reComboMark = RegExp(rsCombo, 'g')
* // => 'deja vu'
*/
function deburr(string) {
string = toString(string)
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '')
}