OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.5 KiB

  1. Sun Nov 4 18:47:56 EET 2007 Ville Laurikari <vl@iki.fi>
  2. * Fixed a bug in \<.
  3. \< always matched at the beginning of the string. Thanks to Shmuel
  4. Zeigerman for the bug report.
  5. See http://laurikari.net/pipermail/tre-general/2007-February/000128.html
  6. diff -rN -u old-stable/lib/tre-match-utils.h new-stable/lib/tre-match-utils.h
  7. --- old-stable/lib/tre-match-utils.h 2007-11-04 20:30:23.000000000 +0200
  8. +++ new-stable/lib/tre-match-utils.h 2007-11-04 20:30:23.000000000 +0200
  9. @@ -161,7 +161,7 @@
  10. && (next_c != L'\0' || reg_noteol) \
  11. && (next_c != L'\n' || !reg_newline)) \
  12. || ((assertions & ASSERT_AT_BOW) \
  13. - && (pos > 0 && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c)))) \
  14. + && (IS_WORD_CHAR(prev_c) || !IS_WORD_CHAR(next_c))) \
  15. || ((assertions & ASSERT_AT_EOW) \
  16. && (!IS_WORD_CHAR(prev_c) || IS_WORD_CHAR(next_c))) \
  17. || ((assertions & ASSERT_AT_WB) \
  18. diff -rN -u old-stable/tests/retest.c new-stable/tests/retest.c
  19. --- old-stable/tests/retest.c 2007-11-04 20:30:23.000000000 +0200
  20. +++ new-stable/tests/retest.c 2007-11-04 20:30:23.000000000 +0200
  21. @@ -1121,6 +1121,8 @@
  22. test_exec("aax xxa", 0, REG_OK, 2, 3, END);
  23. test_comp("\\Bx\\b", REG_EXTENDED, 0);
  24. test_exec("aax xxx", 0, REG_OK, 2, 3, END);
  25. + test_comp("\\<.", REG_EXTENDED, 0);
  26. + test_exec(";xaa", 0, REG_OK, 1, 2, END);
  27. /* Shorthands for character classes. */
  28. test_comp("\\w+", REG_EXTENDED, 0);