Skip to content

Commit

Permalink
Fixed a bug with RegExp substitution elements in the content
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalarcon committed Mar 26, 2019
1 parent aa661ef commit 60d729c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IISHelpers/TemplatingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal static string ReplacePlaceHolder(string originalContent, string placeho

return Regex.Replace(originalContent,
GetPlaceholderRegexString(placeholderName),
Regex.Replace(newValue, "\\$[0-9]+", @"$$$0"),
newValue.Replace("$", "$$"), //Prevents any substitution elements (such as $0, $$... https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference#substitutions) in the new value
RegexOptions.IgnoreCase);
}

Expand Down
2 changes: 1 addition & 1 deletion src/MIISHandler/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<appSettings>
<add key="sitetitle" value ="MIIS Docs"/>
<add key="MIIS:UseMDCaching" value ="1"/>
<add key="MIIS:UseMDCaching" value ="0"/>
<add key="MIIS:UseEmoji" value="1" />
<add key="MIIS:allowDownloading" value="0"/>
<add key="copyright" value="campusMVP 2017"/>
Expand Down

0 comments on commit 60d729c

Please sign in to comment.