Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions ua-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ pub mod user_agent {
impl<'a> Builder<'a> {
/// Initialise an empty builder.
pub fn new() -> Self {
Self::default()
Self {
builder: regex_filtered::Builder::new_atom_len(2),
repl: Vec::new(),
}
}

/// Build the extractor, may be called without pushing any
Expand Down Expand Up @@ -339,7 +342,10 @@ pub mod os {
impl<'a> Builder<'a> {
///
pub fn new() -> Self {
Self::default()
Self {
builder: regex_filtered::Builder::new_atom_len(2),
repl: Vec::new(),
}
}

/// Builds the [`Extractor`], may fail if building the
Expand Down Expand Up @@ -503,7 +509,10 @@ pub mod device {
/// Creates a builder in the default configurtion, which is
/// the only configuration.
pub fn new() -> Self {
Self::default()
Self {
builder: regex_filtered::Builder::new_atom_len(2),
repl: Vec::new(),
}
}

/// Builds an Extractor, may fail if compiling the prefilter fails.
Expand Down