You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error=$"Expressions like '/{{var:?}}/' are disallowed; they would match '//'. Found '/{currentSegment}/'. Use {{var:?:suffix(/)}} to make the segment optional - it won't capture there are no more slashes. ";
Copy file name to clipboardExpand all lines: src/Imazen.Routing/Matching/ParsingOptions.cs
+5-34Lines changed: 5 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -16,21 +16,7 @@ public record ParsingOptions
16
16
/// </summary>
17
17
publicboolIgnorePath{get;init;}=false;
18
18
19
-
/// <summary>
20
-
/// If true, matching will only succeed if the Accept HTTP header is present and contains 'image/webp'
21
-
/// </summary>
22
-
publicboolRequireAcceptWebP{get;init;}
23
-
24
-
/// <summary>
25
-
/// If true, matching will only succeed if the Accept HTTP header is present and contains 'image/avif'
26
-
/// </summary>
27
-
publicboolRequireAcceptAvif{get;init;}
28
-
29
-
/// <summary>
30
-
/// If true, matching will only succeed if the Accept HTTP header is present and contains 'image/jxl'
31
-
/// </summary>
32
-
publicboolRequireAcceptJxl{get;init;}
33
-
19
+
34
20
/// <summary>
35
21
/// * `import-accept-header` Searches the accept header for image/webp, image/avif, and image/jxl and translates them to &accept.webp=1, &accept.avif=1, &accept.jxl=1
error=$"Template uses optional variable '{variableName}' without providing a fallback (:or-var, :default) or marking as ignorable (:optional, :?).";
225
+
error=$"Template uses optional variable '{variableName}' without providing a fallback such as (:or-var(name), :default(value)) or marking as ignorable (:optional, :?).";
0 commit comments