@@ -305,7 +305,7 @@ class lcl_utils implementation.
305305 " A lightweight check covering the top-level JSON value would look like this
306306 " ^\s*(\{.*\}|\[.*\]|"(?:\\.|[^"\\])*"|true|false|null|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\s*$
307307 " Unfortunately, this is quite slow so we use a trivial check of the beginning of the JSON data
308- find regex '^\s*(true|false|null|-?\d|"|\{|\[)' in iv_data.
308+ find regex '^\s*(true|false|null|-?\d|"|\{|\[)' in iv_data ##REGEX_POSIX .
309309 if sy -subrc <> 0 .
310310 zcx_ajson_error=>raise(
311311 iv_msg = | Json parsing error: Not JSON|
@@ -1211,7 +1211,7 @@ class lcl_json_to_abap implementation.
12111211
12121212 find first occurrence of regex '^(\d{4})-(\d{2})-(\d{2})(T|$)' "#EC NOTEXT
12131213 in iv_value
1214- submatches lv_y lv_m lv_d.
1214+ submatches lv_y lv_m lv_d ##REGEX_POSIX .
12151215 if sy -subrc <> 0 .
12161216 zcx_ajson_error=>raise( 'Unexpected date format' ).
12171217 endif .
@@ -1269,7 +1269,7 @@ class lcl_json_to_abap implementation.
12691269 in iv_value submatches
12701270 ls_timestamp-year ls_timestamp-month ls_timestamp-day ls_timestamp-t
12711271 ls_timestamp-hour ls_timestamp-minute ls_timestamp-second
1272- ls_timestamp-local_sign ls_timestamp-local_hour ls_timestamp-local_minute.
1272+ ls_timestamp-local_sign ls_timestamp-local_hour ls_timestamp-local_minute ##REGEX_POSIX .
12731273
12741274 if sy -subrc = 0 .
12751275
@@ -1280,7 +1280,7 @@ class lcl_json_to_abap implementation.
12801280 find first occurrence of regex lc_regex_ts_utc
12811281 in iv_value submatches
12821282 ls_timestamp-year ls_timestamp-month ls_timestamp-day ls_timestamp-t
1283- ls_timestamp-hour ls_timestamp-minute ls_timestamp-second ls_timestamp-frac.
1283+ ls_timestamp-hour ls_timestamp-minute ls_timestamp-second ls_timestamp-frac ##REGEX_POSIX .
12841284
12851285 if sy -subrc <> 0 .
12861286 zcx_ajson_error=>raise( 'Unexpected timestamp format' ).
@@ -1334,7 +1334,7 @@ class lcl_json_to_abap implementation.
13341334
13351335 find first occurrence of regex '^(\d{2}):(\d{2}):(\d{2})(T|$)' "#EC NOTEXT
13361336 in iv_value
1337- submatches lv_h lv_m lv_s.
1337+ submatches lv_h lv_m lv_s ##REGEX_POSIX .
13381338 if sy -subrc <> 0 .
13391339 zcx_ajson_error=>raise( 'Unexpected time format' ).
13401340 endif .
0 commit comments