[smuxi: 67/111] Common: re-use regex instance in NDesk.Options
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 67/111] Common: re-use regex instance in NDesk.Options
- Date: Sun, 16 Feb 2014 13:18:48 +0000 (UTC)
commit 8f5a981c2c4d8a3b6a2f1d9f9c9ba88075f523ff
Author: Mirco Bauer <meebey meebey net>
Date: Sun Jan 12 08:07:26 2014 +0100
Common: re-use regex instance in NDesk.Options
src/Common/NDesk.Options.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Common/NDesk.Options.cs b/src/Common/NDesk.Options.cs
index 2b23d9c..2ad7124 100644
--- a/src/Common/NDesk.Options.cs
+++ b/src/Common/NDesk.Options.cs
@@ -765,7 +765,7 @@ namespace Mono.Options
return false;
}
- private readonly Regex ValueOption = new Regex (
+ static readonly Regex ValueOption = new Regex (
@"^(?<flag>--|-|/)(?<name>[^:=]+)((?<sep>[:=])(?<value>.*))?$");
protected bool GetOptionParts (string argument, out string flag, out string name, out string
sep, out string value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]