diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-06-28 10:20:55 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-06-28 17:30:18 +0200 |
commit | a1f76adfb03c23bb4242928e8efe6193c301f0c1 (patch) | |
tree | 7e2a5c58656ffbe78d34dc58639d7cd5bf8f943a /lisp/emacs-lisp | |
parent | aae5bf4438712c9fe761c5e4b5a871192852cd97 (diff) | |
download | emacs-a1f76adfb03c23bb4242928e8efe6193c301f0c1.tar.gz emacs-a1f76adfb03c23bb4242928e8efe6193c301f0c1.tar.bz2 emacs-a1f76adfb03c23bb4242928e8efe6193c301f0c1.zip |
Correct regexp matching of raw bytes
Make regexp matching of raw bytes work in all combination of unibyte
and multibyte patterns and targets, as exact strings and in character
alternatives (bug#3687).
* src/regex-emacs.c (analyze_first):
Include raw byte in fastmap when pattern is a multibyte exact string.
Include leading byte in fastmap for raw bytes in character alternatives.
(re_match_2_internal):
Decrement the byte count by the number of bytes in the pattern character,
not 1.
* test/src/regex-emacs-tests.el (regexp-unibyte-unibyte)
(regexp-multibyte-unibyte, regexp-unibyte-mutibyte)
(regexp-multibyte-multibyte): New tests.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions