Skip to content

Commit

Permalink
update Nancy.Validation.DataAnnotations.Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
qihangnet committed Apr 27, 2017
1 parent 17a1407 commit a7d9902
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MZBlog.Core/Commands/Posts/NewCommentCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public NewCommentCommandInvoker(DB.AutoBox db, ISpamShieldService spamShield)

public CommandResult Execute(NewCommentCommand command)
{
if (Regex.IsMatch(command.Email, @"smithg\d*@gmail.com") || _spamShield.IsSpam(command.SpamShield))
if (Regex.IsMatch(command.Email, @"smith\w\d*@gmail.com") || _spamShield.IsSpam(command.SpamShield))
{
return new CommandResult("You are a spam!");
}
Expand Down
6 changes: 3 additions & 3 deletions MZBlog.Web/MZBlog.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
<Reference Include="Nancy.Validation.DataAnnotations">
<HintPath>..\packages\Nancy.Validation.DataAnnotations.1.4.1\lib\net40\Nancy.Validation.DataAnnotations.dll</HintPath>
</Reference>
<Reference Include="Nancy.Validation.DataAnnotations.Extensions">
<HintPath>..\packages\Nancy.Validation.DataAnnotations.Extensions.0.3.0\lib\net45\Nancy.Validation.DataAnnotations.Extensions.dll</HintPath>
</Reference>
<Reference Include="Nancy.ViewEngines.Razor">
<HintPath>..\packages\Nancy.Viewengines.Razor.1.4.3\lib\net40\Nancy.ViewEngines.Razor.dll</HintPath>
</Reference>
<Reference Include="Nancy.Validation.DataAnnotations.Extensions">
<HintPath>..\packages\Nancy.Validation.DataAnnotations.Extensions.0.4.0\lib\net45\Nancy.Validation.DataAnnotations.Extensions.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="content\css\mz-admin.css">
Expand Down
2 changes: 1 addition & 1 deletion MZBlog.Web/Web.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Expand Down
2 changes: 1 addition & 1 deletion MZBlog.Web/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<package id="Nancy" version="1.4.3" targetFramework="net45" />
<package id="Nancy.Hosting.Aspnet" version="1.4.1" targetFramework="net45" />
<package id="Nancy.Validation.DataAnnotations" version="1.4.1" targetFramework="net45" />
<package id="Nancy.Validation.DataAnnotations.Extensions" version="0.3.0" targetFramework="net45" />
<package id="Nancy.Validation.DataAnnotations.Extensions" version="0.4.0" targetFramework="net45" />
<package id="Nancy.Viewengines.Razor" version="1.4.3" targetFramework="net45" />
<package id="Twitter.Bootstrap.Less" version="3.3.6" targetFramework="net45" />
</packages>

0 comments on commit a7d9902

Please sign in to comment.