Skip to content

Commit 2038277

Browse files
committed
replace @("@")md… with @md:
This is a bit of an odd one, but it's a workaround for a weird Razor quirck. Workaround mentioned here: dotnet/aspnetcore#38595
1 parent 0ba3ff2 commit 2038277

File tree

1 file changed

+1
-1
lines changed
  • crates/oxide/src/extractor/pre_processors

1 file changed

+1
-1
lines changed

crates/oxide/src/extractor/pre_processors/razor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub struct Razor;
66

77
impl PreProcessor for Razor {
88
fn process(&self, content: &[u8]) -> Vec<u8> {
9-
content.replace("@@", " @")
9+
content.replace("@@", " @").replace(r#"@("@")"#, " @")
1010
}
1111
}
1212

0 commit comments

Comments
 (0)