We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f2d351 commit ce52740Copy full SHA for ce52740
features/support/templating.ts
@@ -126,11 +126,13 @@ String.prototype.toOperationName = function (): string {
126
};
127
128
String.prototype.toAttributeName = function (): string {
129
- return String(this)
+ let val = String(this)
130
.replace(/[^A-Za-z0-9]+(.)/g, function (...matches) {
131
return matches[1].toUpperCase();
132
})
133
.replace(/[^A-Za-z0-9]+/g, "");
134
+
135
+ return val.charAt(0).toLowerCase() + val.slice(1);
136
137
138
function getProperty<T, K extends keyof T>(obj: T, name: string): T[K] {
0 commit comments