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()
322
322
[ TestCase ( "foo&&bar" , "foo&&bar" ) ]
323
323
[ TestCase ( "width" , "w" ) ]
324
324
[ TestCase ( "initial_aspect_ratio" , "iar" ) ]
325
+ [ TestCase ( "duration" , "du" ) ]
326
+ [ TestCase ( "preview:duration" , "preview:duration" ) ]
325
327
[ TestCase ( "$width" , "$width" ) ]
326
328
[ TestCase ( "$initial_aspect_ratio" , "$initial_ar" ) ]
327
329
[ TestCase ( "$mywidth" , "$mywidth" ) ]
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public abstract class BaseExpression<T> : BaseExpression
69
69
{ "tags" , "tags" } ,
70
70
{ "pageX" , "px" } ,
71
71
{ "pageY" , "py" } ,
72
+ { "duration" , "du" } ,
72
73
} ;
73
74
74
75
/// <summary>
@@ -498,7 +499,7 @@ private static string GetPattern()
498
499
}
499
500
500
501
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 ( "))" ) ;
502
503
return sb . ToString ( ) ;
503
504
}
504
505
}
You can’t perform that action at this time.
0 commit comments