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 daa3d18 commit d795e5fCopy full SHA for d795e5f
1 file changed
sources/SilkTouch/SilkTouch/Naming/NameUtils.cs
@@ -71,6 +71,12 @@ public static string Prettify(
71
.Pascalize()
72
.Where(x => char.IsLetter(x) || char.IsNumber(x))
73
);
74
+
75
+ if (ret.Length == 0)
76
+ {
77
+ throw new InvalidOperationException($"Failed to prettify string: {str}");
78
+ }
79
80
var retSpan = ret.AsSpan();
81
if (!allowAllCaps && retSpan.IndexOfAny(NotUppercase) == -1)
82
{
0 commit comments