fix: use regex crate in codegen

This commit is contained in:
ThetaDev 2023-02-18 20:42:00 +01:00
parent c80ccf66ce
commit 2a4233e5d5
3 changed files with 4 additions and 5 deletions

View file

@ -2,10 +2,10 @@ use std::collections::{HashMap, HashSet};
use std::{collections::BTreeMap, fs::File, io::BufReader, path::Path};
use anyhow::{Context, Result};
use fancy_regex::Regex;
use futures::{stream, StreamExt};
use once_cell::sync::Lazy;
use path_macro::path;
use regex::Regex;
use reqwest::{header, Client};
use rustypipe::param::{locale::LANGUAGES, Language};
use serde::Deserialize;
@ -139,7 +139,6 @@ pub fn write_samples_to_dict(project_root: &Path) {
.find_map(|(mag, (txt, _))| {
let point = POINT_REGEX
.captures(txt)
.unwrap()
.map(|c| c.get(1).unwrap().as_str());
if let Some(point) = point {