Merge branch 'master' of https://github.com/yhackerbv/VulnNottiProject
Showing
2 changed files
with
0 additions
and
8 deletions
... | @@ -10,18 +10,13 @@ namespace VulnCrawler | ... | @@ -10,18 +10,13 @@ namespace VulnCrawler |
10 | { | 10 | { |
11 | public class VulnC : VulnAbstractCrawler | 11 | public class VulnC : VulnAbstractCrawler |
12 | { | 12 | { |
13 | - | ||
14 | protected override string RegexFuncPattern => $@"@@ \-(?<{OldStart}>\d+),(?<{OldLines}>\d+) \+(?<{NewStart}>\d+),(?<{NewLines}>\d+) @@ (?<{MethodName}>(static)? [\w]+ [\w]+)\([\w \*\,\t\n]*\)"; | 13 | protected override string RegexFuncPattern => $@"@@ \-(?<{OldStart}>\d+),(?<{OldLines}>\d+) \+(?<{NewStart}>\d+),(?<{NewLines}>\d+) @@ (?<{MethodName}>(static)? [\w]+ [\w]+)\([\w \*\,\t\n]*\)"; |
15 | - | ||
16 | protected override string Extension => ".c"; | 14 | protected override string Extension => ".c"; |
17 | - | ||
18 | protected override string ReservedFileName => "CReserved.txt"; | 15 | protected override string ReservedFileName => "CReserved.txt"; |
19 | - | ||
20 | public override MatchCollection GetMatches(string patchCode) { | 16 | public override MatchCollection GetMatches(string patchCode) { |
21 | var regs = Regex.Matches(patchCode, RegexFuncPattern); | 17 | var regs = Regex.Matches(patchCode, RegexFuncPattern); |
22 | return regs; | 18 | return regs; |
23 | } | 19 | } |
24 | - | ||
25 | public override string RemoveComment(string original) { | 20 | public override string RemoveComment(string original) { |
26 | string txt = Regex.Replace(original, Environment.NewLine, ""); | 21 | string txt = Regex.Replace(original, Environment.NewLine, ""); |
27 | 22 | ... | ... |
... | @@ -8,9 +8,6 @@ using System.Text.RegularExpressions; | ... | @@ -8,9 +8,6 @@ using System.Text.RegularExpressions; |
8 | using System.Threading.Tasks; | 8 | using System.Threading.Tasks; |
9 | namespace VulnCrawler | 9 | namespace VulnCrawler |
10 | { | 10 | { |
11 | - | ||
12 | - | ||
13 | - | ||
14 | /// <summary> | 11 | /// <summary> |
15 | /// 파이썬 크롤러 | 12 | /// 파이썬 크롤러 |
16 | /// </summary> | 13 | /// </summary> | ... | ... |
-
Please register or login to post a comment