[2746] in BarnOwl Developers
Re: [PATCH] Add ! to OWL_REGEX_QUOTECHARS
daemon@ATHENA.MIT.EDU (David A Benjamin)
Sun Nov 7 01:56:48 2010
Date: Sun, 7 Nov 2010 01:56:46 -0400 (EDT)
From: David A Benjamin <davidben@MIT.EDU>
To: Anders Kaseorg <andersk@mit.edu>
cc: barnowl-dev@mit.edu
In-Reply-To: <alpine.DEB.2.00.1011070131170.3947@dr-wily.mit.edu>
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1257051904-591422495-1289109406=:15631
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
LGTM
David
On Sun, 7 Nov 2010, Anders Kaseorg wrote:
> The following changes since commit 1279f216fa5354e6309e2c82aecc634431dbfa=
c5:
>
> _owl_function_timer_append_fmtext: Cast time_t to int for sprintf("%d") =
(2010-11-06 18:34:31 -0400)
>
> are available in the git repository at:
> git://andersk.mit.edu/barnowl.git !
>
> Anders Kaseorg (1):
> Add ! to OWL_REGEX_QUOTECHARS
>
> owl.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> -- 8< --
> From bad8ad318c6e0f23c249b75c1e7f927d314e1aff Mon Sep 17 00:00:00 2001
> From: Anders Kaseorg <andersk@mit.edu>
> Date: Sun, 7 Nov 2010 01:25:01 -0400
> Subject: [PATCH] Add ! to OWL_REGEX_QUOTECHARS
> MIME-Version: 1.0
> Content-Type: text/plain; charset=3DUTF-8
> Content-Transfer-Encoding: 8bit
>
> We interpret ! at the beginning of a regex as negation. This fixes
> =E2=80=98:search !=E2=80=99.
>
> Signed-off-by: Anders Kaseorg <andersk@mit.edu>
> ---
> owl.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/owl.h b/owl.h
> index 881931f..fb9d3ae 100644
> --- a/owl.h
> +++ b/owl.h
> @@ -201,7 +201,7 @@ typedef void HV;
> #define OWL_WEBZEPHYR_CLASS "webzephyr"
> #define OWL_WEBZEPHYR_OPCODE "webzephyr"
>
> -#define OWL_REGEX_QUOTECHARS "+*.?[]^\\${}()"
> +#define OWL_REGEX_QUOTECHARS "!+*.?[]^\\${}()"
> #define OWL_REGEX_QUOTEWITH "\\"
>
> #if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && def=
ined(HAVE_DES_ECB_ENCRYPT)
> --=20
> 1.7.3.2
>
>
---1257051904-591422495-1289109406=:15631--