Skip to content

Commit

Permalink
Revert "Replace cl_abap_regex=>create_pcre (#143)"
Browse files Browse the repository at this point in the history
This reverts commit 8a7cdd0.
  • Loading branch information
albertmink committed Sep 11, 2023
1 parent 3c759b2 commit 4178803
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/zcl_aff_abap_doc_parser.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,8 @@ CLASS zcl_aff_abap_doc_parser IMPLEMENTATION.
ENDIF.
write_log_for_multiple_entries( result_table = result_table annotaion = annotation_name ).
DATA(annotation_length) = strlen( dummy_annotation ).
DATA(pcre_of_number_expressions) = NEW cl_abap_regex( pattern = `(\+|-)?[0-9]+(.[0-9]+)?(e(\+|-)?[0-9]+)?`
ignore_case = abap_true ).

DATA(pcre_of_number_expressions) = cl_abap_regex=>create_pcre( pattern = `(\+|-)?[0-9]+(.[0-9]+)?(e(\+|-)?[0-9]+)?`
ignore_case = abap_true ).
DATA(warning_written) = abap_false.
LOOP AT result_table ASSIGNING FIELD-SYMBOL(<entry>).
DATA(offset_found) = <entry>-offset.
Expand Down Expand Up @@ -513,8 +512,7 @@ CLASS zcl_aff_abap_doc_parser IMPLEMENTATION.
IF current_offset >= strlen( text_to_check ).
RETURN.
ENDIF.
DATA(pcre_of_letter) = NEW cl_abap_regex( pattern = `[a-zA-Z]`
ignore_case = abap_false ) ##NO_TEXT.
DATA(pcre_of_letter) = cl_abap_regex=>create_pcre( pattern = `[a-zA-Z]` ) ##NO_TEXT.
DO.
next_char = text_to_check+current_offset(1).
current_offset += 1.
Expand Down

0 comments on commit 4178803

Please sign in to comment.