js-regex 0.1.0

Rust validator for ECMAScript regex literals based on regexpp.
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 0 items with examples
  • Size
  • Source code size: 145.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • qkniep/js-regex
    7 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • qkniep

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.