mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
make regex more robust
This commit is contained in:
parent
85f32383d7
commit
47d0445855
|
@ -427,11 +427,11 @@ CLASS zcl_abapgit_gui_page_debuginfo IMPLEMENTATION.
|
||||||
cv_clsname = c_exit_class.
|
cv_clsname = c_exit_class.
|
||||||
|
|
||||||
DO.
|
DO.
|
||||||
FIND REGEX 'CLASS (.*) DEFINITION' IN TABLE ct_source SUBMATCHES cv_clsname IGNORING CASE.
|
FIND REGEX 'CLASS\s+(.*)\s+DEFINITION' IN TABLE ct_source SUBMATCHES cv_clsname IGNORING CASE.
|
||||||
IF sy-subrc = 0.
|
IF sy-subrc = 0.
|
||||||
RETURN.
|
RETURN.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
FIND REGEX 'INCLUDE (.*)\.' IN TABLE ct_source SUBMATCHES lv_include IGNORING CASE.
|
FIND REGEX 'INCLUDE\s+(.*)\s*\.' IN TABLE ct_source SUBMATCHES lv_include IGNORING CASE.
|
||||||
IF sy-subrc = 0.
|
IF sy-subrc = 0.
|
||||||
TRY.
|
TRY.
|
||||||
ct_source = zcl_abapgit_factory=>get_sap_report( )->read_report( lv_include ).
|
ct_source = zcl_abapgit_factory=>get_sap_report( )->read_report( lv_include ).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user