[smuxi/stable] Engine: match regex highlight words case insensitively (closes: GH-243)
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/stable] Engine: match regex highlight words case insensitively (closes: GH-243)
- Date: Wed, 10 Feb 2016 16:19:57 +0000 (UTC)
commit 0571f32dc4d5e9d7e8c11e95519ef16c8efac7f1
Author: Mirco Bauer <meebey meebey net>
Date: Wed Feb 10 17:08:12 2016 +0100
Engine: match regex highlight words case insensitively (closes: GH-243)
src/Engine/Messages/MessageBuilder.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Messages/MessageBuilder.cs b/src/Engine/Messages/MessageBuilder.cs
index 6ff9713..1b209c4 100644
--- a/src/Engine/Messages/MessageBuilder.cs
+++ b/src/Engine/Messages/MessageBuilder.cs
@@ -432,7 +432,8 @@ namespace Smuxi.Engine
if (highLightWord.StartsWith("/") && highLightWord.EndsWith("/")) {
// This is a regex, so just build a regex out of the string.
regex = new Regex(
- highLightWord.Substring(1, highLightWord.Length - 2)
+ highLightWord.Substring(1, highLightWord.Length - 2),
+ RegexOptions.IgnoreCase
);
} else {
// Plain text - make a regex that matches the word as long as it's separated properly.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]