Rename of non-intrinsic JSX element should rename the declaration (#28066)

This commit is contained in:
Andy
2018-10-22 18:17:32 -07:00
committed by GitHub
parent 82773b8550
commit 5becc3b170
3 changed files with 14 additions and 6 deletions

View File

@@ -3089,7 +3089,7 @@ namespace ts {
export function isIntrinsicJsxName(name: __String | string) {
const ch = (name as string).charCodeAt(0);
return (ch >= CharacterCodes.a && ch <= CharacterCodes.z) || (name as string).indexOf("-") > -1;
return (ch >= CharacterCodes.a && ch <= CharacterCodes.z) || stringContains((name as string), "-");
}
function get16BitUnicodeEscapeSequence(charCode: number): string {