We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1182443 commit 95e74baCopy full SHA for 95e74ba
index.js
@@ -41,5 +41,8 @@ export default function dotnetIdentifierCase(value) {
41
return first.toUpperCase() + rest.toLowerCase();
42
})
43
// Remove non-alnum characters
44
- .replaceAll(/[^\p{L}\p{N}]+/gu, '');
+ // Note: C# identifiers can have [\p{L}\p{Nl}\p{Nd}\p{Pc}\p{Mn}\p{Mc}\p{Cf}]
45
+ // Stick with [\p{L}\d] for consistency with change-case
46
+ // https://github.com/blakeembrey/change-case/blob/38e6b4f9115cf93b18ca9b1b4a620a32751499cb/packages/change-case/src/index.ts#L9
47
+ .replaceAll(/[^\p{L}\d]+/gu, '');
48
}
0 commit comments