aboutsummaryrefslogtreecommitdiff
path: root/src/pre_process.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre_process.rs')
-rw-r--r--src/pre_process.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pre_process.rs b/src/pre_process.rs
index 877ddc3..c68528f 100644
--- a/src/pre_process.rs
+++ b/src/pre_process.rs
@@ -1,15 +1,13 @@
1pub fn strip_irrelevant_content(s: &str) -> String { 1pub fn strip_irrelevant_content(s: &str) -> String {
2 let mut retn = ""; 2 let mut retn = "";
3 match s.find(r#"<div class=profile id=profile>"#) { 3 match s.find(r#"<A href="watchdontwatch.php">"#) {
4 Some(pos) => retn = &s[pos..], 4 Some(pos) => retn = &s[pos..],
5 None => (), 5 None => (),
6 }; 6 };
7 7
8 match s.find(r#"<INPUT style="font-size: 2em;" TYPE=SUBMIT NAME="votes" VALUE="Cast Votes">"#) { 8 match s.find(r#"<H3>Characters"#) {
9 Some(pos) => retn = &s[..pos], 9 Some(pos) => retn = &s[..pos],
10 None => (), 10 None => (),
11 }; 11 };
12 return retn.into(); 12 return retn.into();
13} 13}
14
15