Skip to content

Commit

Permalink
fix: handle changes in zhConversion.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowee committed Nov 27, 2024
1 parent a312e99 commit 42fe510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ fn main() -> io::Result<()> {
}

fn parse_mediawiki(text: &str) -> HashMap<String, Vec<(String, String)>> {
let patb = Regex::new(r"public static \$(\w+) = \[([^]]+)\]?;").unwrap();
let patb = Regex::new(r"public const (\w+) = \[([^]]+)\]?;").unwrap();
let patl = Regex::new(r"'(.+?)' *=> *'(.+?)' *,?\n").unwrap();
let mut res = HashMap::new();

Expand Down

0 comments on commit 42fe510

Please sign in to comment.