File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
CloudinaryDotNet.Tests/Transformations/Common
CloudinaryDotNet/Transforms Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,8 @@ public void TestShouldSupportPowOperator()
322322 [ TestCase ( "foo&&bar" , "foo&&bar" ) ]
323323 [ TestCase ( "width" , "w" ) ]
324324 [ TestCase ( "initial_aspect_ratio" , "iar" ) ]
325+ [ TestCase ( "duration" , "du" ) ]
326+ [ TestCase ( "preview:duration" , "preview:duration" ) ]
325327 [ TestCase ( "$width" , "$width" ) ]
326328 [ TestCase ( "$initial_aspect_ratio" , "$initial_ar" ) ]
327329 [ TestCase ( "$mywidth" , "$mywidth" ) ]
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public abstract class BaseExpression<T> : BaseExpression
6969 { "tags" , "tags" } ,
7070 { "pageX" , "px" } ,
7171 { "pageY" , "py" } ,
72+ { "duration" , "du" } ,
7273 } ;
7374
7475 /// <summary>
@@ -498,7 +499,7 @@ private static string GetPattern()
498499 }
499500
500501 sb . Remove ( sb . Length - 1 , 1 ) ;
501- sb . Append ( ")(?=[ _])|(?<!\\ $)(" ) . Append ( string . Join ( "|" , parameters . Keys . ToArray ( ) ) ) . Append ( "))" ) ;
502+ sb . Append ( ")(?=[ _])|(?<![ \\ $:] )(" ) . Append ( string . Join ( "|" , parameters . Keys . ToArray ( ) ) ) . Append ( "))" ) ;
502503 return sb . ToString ( ) ;
503504 }
504505 }
You can’t perform that action at this time.
0 commit comments