| Crates.io | js-regex |
| lib.rs | js-regex |
| version | 0.1.0 |
| created_at | 2020-08-02 20:03:32.86615+00 |
| updated_at | 2020-08-02 20:03:32.86615+00 |
| description | Rust validator for ECMAScript regex literals based on regexpp. |
| homepage | https://quentinkniep.com |
| repository | https://github.com/qkniep/js-regex |
| max_upload_size | |
| id | 272321 |
| size | 146,005 |
js-regexpRust port of regexpp (ECMAScript regular expression parser). This crate is being developed mainly as an efficient validator of ECMAScript regular expressions for the deno_lint project.
let mut validator = EcmaRegexValidator::new(EcmaVersion::ES2018);
assert_eq!(validator.validate_pattern("foo|abc(d)?", false), Ok(()));
assert_eq!(validator.validate_flags("gim", false), Ok(()));
TBA
Released under the MIT License.