Extend Jerry API & API documentation with regex flags (#4246)

JerryScript-DCO-1.0-Signed-off-by: Virag Orkenyi orkvi@inf.u-szeged.hu
This commit is contained in:
Virag Orkenyi
2020-11-16 15:42:27 +01:00
committed by GitHub
parent 1237bef0f0
commit f7b7873a02
4 changed files with 99 additions and 5 deletions
+12 -3
View File
@@ -183,11 +183,20 @@ RegExp object optional flags:
- JERRY_REGEXP_FLAG_GLOBAL - global match; find all matches rather than stopping after the first match
- JERRY_REGEXP_FLAG_IGNORE_CASE - ignore case
- JERRY_REGEXP_FLAG_MULTILINE - multiline; treat beginning and end characters (^ and $) as working over
multiple lines (i.e., match the beginning or end of each line (delimited by \n or \r), not only the
very beginning or end of the whole input string)
- JERRY_REGEXP_FLAG_MULTILINE - multiline; treat beginning and end characters (^ and $) as working
over
multiple lines (i.e., match the beginning or end of each line (delimited by \n or \r), not only the
very beginning or end of the whole input string)
- JERRY_REGEXP_FLAG_STICKY - The sticky flag indicates that it matches only from the index indicated
by the lastIndex property
- JERRY_REGEXP_FLAG_UNICODE - The unicode flag enables various Unicode-related features
- JERRY_REGEXP_FLAG_DOTALL -The dotall flag indicates that the dot special character (".") should
additionally match the following line terminator ("newline") characters in a string;
*New in version 2.0*.
*Changed in version[[NEXT_RELEASE]]* : Added `JERRY_REGEXP_FLAG_STICKY`, `JERRY_REGEXP_FLAG_UNICODE` , `JERRY_REGEXP_FLAG_DOTALL` values.
## jerry_parse_opts_t