WeaponRegeXJS

weaponregex.WeaponRegeXJS
object WeaponRegeXJS

The API facade of Weapon regeX for JavaScript

Attributes

Note

For JavaScript use only

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def mutate(pattern: String, flags: UndefOr[String], options: UndefOr[MutationOptions]): Array[MutantJS]

Mutate a regex pattern and flags with the given options.

Mutate a regex pattern and flags with the given options.

Value parameters

flags

Regex flags or undefined

options

JavaScript object for Mutation options

{
 mutators: [Mutators to be used for mutation. If this is `null`, all built-in mutators will be used.],
 mutationLevels: [Target mutation levels. If this is `null`, the `mutators`, will not be filtered.],
 flavor: [Regex flavor. By the default, `ParerFlavorJS` will be used.]
}
pattern

Input regex string

Attributes

Returns

A JavaScript Array of weaponregex.model.mutation.Mutant if can be parsed, or throw an exception otherwise