Project

Profile

Help

Revision 23766e3b

Added by Debbie Lockett almost 3 years ago

Bug #4076 fix: fn:replace with unmatched double digit capturing group

View differences:

latest9.9/hej/net/sf/saxon/regex/REMatcher.java
602 602

  
603 603
            if (!program.flags.isLiteral()) {
604 604
                // Process references to captured substrings
605
                int maxCapture = getParenCount() - 1;
605
                int maxCapture = program.maxParens - 1;
606 606

  
607 607
                for (int i = 0; i < replacement.uLength(); i++) {
608 608
                    int ch = replacement.uCharAt(i);

Also available in: Unified diff