@@ -127,12 +127,12 @@ use crate::Result;
127
127
/// }"#;
128
128
///
129
129
/// // Generate regex from schema
130
- /// let regex = json_schema::regex_from_str(&schema, None)?;
130
+ /// let regex = json_schema::regex_from_str(&schema, None, None )?;
131
131
/// println!("Generated regex: {}", regex);
132
132
///
133
133
/// // Custom whitespace pattern could be passed as well
134
134
/// let whitespace_pattern = Some(r#"[\n ]*"#);
135
- /// let regex = json_schema::regex_from_str(&schema, whitespace_pattern)?;
135
+ /// let regex = json_schema::regex_from_str(&schema, whitespace_pattern, None )?;
136
136
/// println!("Generated regex with custom whitespace pattern: {}", regex);
137
137
///
138
138
/// # Ok(())
@@ -171,12 +171,12 @@ pub fn regex_from_str(
171
171
/// let schema_value: Value = serde_json::from_str(schema)?;
172
172
///
173
173
/// // It's possible to generate a regex from schema value
174
- /// let regex = json_schema::regex_from_value(&schema_value, None)?;
174
+ /// let regex = json_schema::regex_from_value(&schema_value, None, None )?;
175
175
/// println!("Generated regex: {}", regex);
176
176
///
177
177
/// // Custom whitespace pattern could be passed as well
178
178
/// let whitespace_pattern = Some(r#"[\n ]*"#);
179
- /// let regex = json_schema::regex_from_value(&schema_value, whitespace_pattern)?;
179
+ /// let regex = json_schema::regex_from_value(&schema_value, whitespace_pattern, None )?;
180
180
/// println!("Generated regex with custom whitespace pattern: {}", regex);
181
181
///
182
182
/// # Ok(())
0 commit comments