Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ae671f

Browse files
committed
simplified pattern
1 parent 01b59b4 commit 4ae671f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/core/ut_expectation_processor.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ create or replace package body ut_expectation_processor as
130130
-- in 12.2 format_call_stack reportes not only package name, but also the procedure name
131131
-- when 11g and 12c reports only package name
132132
c_expectation_search_pattern constant varchar2(500) :=
133-
'(.*\.UT_EXPECTATION_RESULT\s+)(.*\.UT_EXPECTATION[A-Z0-9#_$]*(\.[A-Za-z0-9$#_]+)?.*?)+(.*\.UT(\.FAIL)?\s+)?(.*\.UTASSERT2?(\.[A-Za-z0-9$#_]+)?.*?$\s+)*(.*?$)';
133+
'(^.*\.((UT_EXPECTATION[A-Z0-9#_$]*)|(UT)|(UTASSERT2?))(\.[A-Z0-9#_$]+)?$\s)+\s*(.*)';
134134
begin
135-
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'mn', 8);
135+
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'm', 7);
136136
l_line_no := to_number( regexp_substr(l_caller_stack_line,'^\dx[0-9a-f]+\s+(\d+)',subexpression => 1) );
137137
l_caller_type_and_name := substr( l_caller_stack_line, 23 );
138138
if l_caller_stack_line like '%.%' then

0 commit comments

Comments
 (0)