| Constructor and Description |
|---|
JsRegExpCheck(Object[] args)
Creates a new regexp check with the given regexp and flags.
|
JsRegExpCheck(String regExp,
String... flags) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(String value) |
JsRegExpCheck |
withTimeout(long timeout,
TimeUnit unit)
Changes the default timeout.
|
public JsRegExpCheck(Object[] args)
args - An array that contains the regexp (String) as the first item, and optional String flags as the second,
third, etc. item. Currently only i, g, and m flags are supported by the regexp engine.public JsRegExpCheck withTimeout(long timeout, TimeUnit unit)
timeout - Timeout for the regexp check.unit - Unit of the given timeout value.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.