[2745] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH] Add ! to OWL_REGEX_QUOTECHARS

daemon@ATHENA.MIT.EDU (Anders Kaseorg)
Sun Nov 7 01:32:46 2010

Date: Sun, 7 Nov 2010 01:32:43 -0400 (EDT)
From: Anders Kaseorg <andersk@MIT.EDU>
To: barnowl-dev@mit.edu

The following changes since commit 1279f216fa5354e6309e2c82aecc634431dbfac5=
:

  _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=20bad8ad318c6e0f23c249b75c1e7f927d314e1aff 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"
=20
-#define OWL_REGEX_QUOTECHARS    "+*.?[]^\\${}()"
+#define OWL_REGEX_QUOTECHARS    "!+*.?[]^\\${}()"
 #define OWL_REGEX_QUOTEWITH     "\\"
=20
 #if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && defi=
ned(HAVE_DES_ECB_ENCRYPT)
--=20
1.7.3.2


home help back first fref pref prev next nref lref last post