We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca6b72 commit 6bca267Copy full SHA for 6bca267
src/json_schema/types.rs
@@ -2,8 +2,8 @@
2
//! in generating a regular expression string based on a given JSON schema.
3
4
// allow `\"`, `\\`, or any character which isn't a control sequence
5
-pub static STRING_INNER: &str = r#"([^"\\\x00-\x1F\x7F-\x9F]|\\["\\])"#;
6
-pub static STRING: &str = r#""([^"\\\x00-\x1F\x7F-\x9F]|\\["\\])*""#;
+pub static STRING_INNER: &str = r#"([^"\\\x00-\x1F\x7F-\x9F]|\\["\\/bfnrt])"#;
+pub static STRING: &str = r#""([^"\\\x00-\x1F\x7F-\x9F]|\\["\\/bfnrt])*""#;
7
pub static INTEGER: &str = r#"(-)?(0|[1-9][0-9]*)"#;
8
pub static NUMBER: &str = r#"((-)?(0|[1-9][0-9]*))(\.[0-9]+)?([eE][+-][0-9]+)?"#;
9
pub static BOOLEAN: &str = r#"(true|false)"#;
0 commit comments