Added RegExp dotAll flag (#4000)

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
This commit is contained in:
kisbg authored and GitHub committed 2020-07-24 13:42:57 +02:00
1 parent cf097ca16b
commit d39a076b2e
11 files changed
+87 -11

No files matched your search

+6
View File
@@ -2816,6 +2816,12 @@ lexer_construct_regexp_object (parser_context_t *context_p, /**< context */
{
flag = RE_FLAG_STICKY;
}
#if ENABLED (JERRY_ESNEXT)
else if (source_p[0] == LIT_CHAR_LOWERCASE_S)
{
flag = RE_FLAG_DOTALL;
}
#endif /* ENABLED (JERRY_ESNEXT) */
if (flag == 0)
{