summaryrefslogtreecommitdiffstats
path: root/docs/scripts/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'docs/scripts/Program.cs')
-rw-r--r--docs/scripts/Program.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/scripts/Program.cs b/docs/scripts/Program.cs
index b256af1b2..8a87f153d 100644
--- a/docs/scripts/Program.cs
+++ b/docs/scripts/Program.cs
@@ -11,12 +11,13 @@ namespace toc
{
StringBuilder sb = new StringBuilder();
title = title.Trim().ToLower();
+
foreach (var ch in title)
{
if (ch >= 'a' && ch <= 'z' || ch >= '0' && ch <= '9'
- || ch == '-')
+ || ch == '-'|| ch =='_')
sb.Append(ch);
- else if (ch==' ' || ch =='_')
+ else if (ch == ' ' )
sb.Append('-');
}
return sb.ToString();