Skip to content

Commit

Permalink
Fix x86 online docs regex, removing extra /x86/
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLillis authored and bergercookie committed Oct 22, 2023
1 parent 3c51f99 commit b269d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/x86_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ pub fn populate_instructions(xml_contents: &str) -> anyhow::Result<Vec<Instructi
//
// let re = Regex::new(r"<a href=\"./(.*)">(.*)</a></td>")?;
// let re = Regex::new(r#"<a href="\./(.*?\.html)">(.*?)</a>.*</td>"#)?;
let re = Regex::new(r"<a href='\/(.*?)'>(.*?)<\/a>.*<\/td>")?;
// let re = Regex::new(r"<a href='\/(.*?)'>(.*?)<\/a>.*<\/td>")?;
let re = Regex::new(r"<a href='\/x86\/(.*?)'>(.*?)<\/a>.*<\/td>")?;
for line in body_it {
// take it step by step.. match a small portion of the line first...
let caps = re.captures(line).unwrap();
Expand Down

0 comments on commit b269d43

Please sign in to comment.