Add tags

Add tags to the following comment
#4259 の指摘を受けて、とりあえず Regex.Escape 挟んでみました。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
--- trie.cs.old Tue Nov 20 01:20:52 2007
+++ trie.cs     Tue Nov 20 01:21:24 2007
@@ -8,7 +8,7 @@
         using(StreamReader sr = new StreamReader(args[0])) {
             foreach(string line in sr.ReadToEnd().Split('\n', '\r')) {
                 if (line != string.Empty && !words.Contains(line)) {
-                    words.Add(line);
+                    words.Add(System.Text.RegularExpressions.Regex.Escape(line)
);
                 }
             }
             words.Sort();

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...