Skip to content

Commit

Permalink
Fixed a bug with determining groovy name/namespace when single-quotes…
Browse files Browse the repository at this point in the history
… were used
  • Loading branch information
dcmeglio committed Apr 22, 2020
1 parent 9f04d1a commit 5e52982
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HubitatPackageManagerTools/Executors/ManifestExecutorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace HubitatPackageManagerTools.Executors
{
internal class ManifestExecutorBase : ExecutorBase
{
protected static Regex nameMatcher = new Regex("definition\\s*?\\(.*?name:\\s*\"([^\"]*)\"", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
protected static Regex namespaceMatcher = new Regex("definition\\s*?\\(.*?namespace:\\s*\"([^\"]*)\"", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
protected static Regex nameMatcher = new Regex(@"definition\s*?\(.*?name:\s*(?:(?:""([^""]*)"")|(?:'([^']*)'))", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
protected static Regex namespaceMatcher = new Regex(@"definition\s*?\(.*?namespace:\s*(?:(?:""([^""]*)"")|(?:'([^']*)'))", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
protected JObject OpenExistingManifest(ManifestOptionsBase options)
{
using var file = File.OpenText(options.ManifestFile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>hpm</AssemblyName>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down

0 comments on commit 5e52982

Please sign in to comment.