File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24575,10 +24575,11 @@ namespace ts {
24575
24575
}
24576
24576
24577
24577
/**
24578
- * Returns true iff the JSX element name would be a valid JS identifier, ignoring restrictions about keywords not being identifiers
24578
+ * Returns true if the hyphen character is not in the JSX element name preventing it from being a valid JS identifier,
24579
+ * ignoring restrictions about keywords not being identifiers
24579
24580
*/
24580
24581
function isUnhyphenatedJsxName(name: string | __String) {
24581
- // - is the only character supported in JSX attribute names that isn't valid in JavaScript identifiers
24582
+ // - is one of only two characters supported in JSX attribute names that isn't valid in JavaScript identifiers, : being the other
24582
24583
return !stringContains(name as string, "-");
24583
24584
}
24584
24585
You can’t perform that action at this time.
0 commit comments