js-regex

Crates.iojs-regex
lib.rsjs-regex
version0.1.0
sourcesrc
created_at2020-08-02 20:03:32.86615
updated_at2020-08-02 20:03:32.86615
descriptionRust validator for ECMAScript regex literals based on regexpp.
homepagehttps://quentinkniep.com
repositoryhttps://github.com/qkniep/js-regex
max_upload_size
id272321
size146,005
Quentin Kniep (qkniep)

documentation

README

js-regexp

Build Status codecov LoC License

Rust 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.

Using the Library

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(()));

Performance

TBA

License

Released under the MIT License.

Commit count: 29

cargo fmt