Project

Profile

Help

Revision 27576822

Added by Michael Kay about 15 years ago

Fix bug 1620754 (leading whitespace in regex with x flag) Fix bug 1620754

View differences:

latest8.8/bj/net/sf/saxon/regex/JDK15RegexTranslator.java
437 437
    private JDK15RegexTranslator(CharSequence regExp) {
438 438
        this.regExp = regExp;
439 439
        this.length = regExp.length();
440
        advance();
441 440
    }
442 441

  
443 442
    /**
......
464 463
        tr.isXPath = xpath;
465 464
        tr.ignoreWhitespace = ignoreWhitespace;
466 465
        tr.caseBlind = caseBlind;
466
        tr.advance();
467 467
        tr.translateTop();
468 468
        //System.err.println("Output regex: " + tr.result.toString());
469 469
        return tr.result.toString();

Also available in: Unified diff