aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data.WindowsInstaller/Common.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-07 14:19:05 -0800
committerRob Mensching <rob@firegiant.com>2017-12-07 14:19:05 -0800
commit49f1209035aac1fcfad5dbbe25f7b2306d3be86c (patch)
tree6ce5921493eb751b6d89c3faf0ebdf64110cbb65 /src/WixToolset.Data.WindowsInstaller/Common.cs
parentb1e662bd480241ea914f0f3d6bd174d9ffd03f5f (diff)
downloadwix-49f1209035aac1fcfad5dbbe25f7b2306d3be86c.tar.gz
wix-49f1209035aac1fcfad5dbbe25f7b2306d3be86c.tar.bz2
wix-49f1209035aac1fcfad5dbbe25f7b2306d3be86c.zip
Support MSI backends creating custom tables and remove WixToolset.Data.WindowsInstaller
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Common.cs')
-rw-r--r--src/WixToolset.Data.WindowsInstaller/Common.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Common.cs b/src/WixToolset.Data.WindowsInstaller/Common.cs
deleted file mode 100644
index a1e1e607..00000000
--- a/src/WixToolset.Data.WindowsInstaller/Common.cs
+++ /dev/null
@@ -1,25 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Data
4{
5 using System;
6 using System.Text.RegularExpressions;
7
8 internal static class Common
9 {
10 private static readonly Regex LegalIdentifierCharacters = new Regex(@"^[_A-Za-z][0-9A-Za-z_\.]*$", RegexOptions.Compiled);
11
12 public static bool IsIdentifier(string value)
13 {
14 if (!String.IsNullOrEmpty(value))
15 {
16 if (LegalIdentifierCharacters.IsMatch(value))
17 {
18 return true;
19 }
20 }
21
22 return false;
23 }
24 }
25}