Created
March 22, 2018 18:05
-
-
Save NaibafCH/23db25fe8c1fea3cfd53f2221a8ab2ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.RegularExpressions; | |
using Sitecore.Mvc.Pipelines.Response.GetDynamicPlaceholderInitialKey; | |
namespace Foundation.DynamicPlaceholder.Pipelines.GetDynamicPlaceholderInitialKey | |
{ | |
public class RemovePlaceholderUniqueKeySuffixWithCountOrId : RemovePlaceholderUniqueKeySuffix | |
{ | |
private static readonly Regex DynamicPartMatcherWithId = | |
new Regex("-{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}-([0-9]+|{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}})$", RegexOptions.Compiled); | |
public RemovePlaceholderUniqueKeySuffixWithCountOrId() | |
{ | |
DynamicPartMatcher = DynamicPartMatcherWithId; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment