only allow [] to enclose options
we could pick up ( ) too easily before see https://github.com/jcupitt/libvips/issues/342
This commit is contained in:
parent
9cad049051
commit
3b34308e6d
5
TODO
5
TODO
@ -1,8 +1,3 @@
|
||||
- dzsave output dir names often don't have extensions, so stuff in brackets at
|
||||
the end of the filename can get picked up
|
||||
|
||||
perhaps remove using () for options?
|
||||
|
||||
- try vips_shrink() in two passes: first, sum horizontal strips, second sum
|
||||
vertical
|
||||
|
||||
|
@ -1165,18 +1165,12 @@ vips__token_get( const char *p, VipsToken *token, char *string, int size )
|
||||
return( NULL );
|
||||
|
||||
switch( (ch = p[0]) ) {
|
||||
case '{':
|
||||
case '[':
|
||||
case '(':
|
||||
case '<':
|
||||
*token = VIPS_TOKEN_LEFT;
|
||||
p += 1;
|
||||
break;
|
||||
|
||||
case ')':
|
||||
case ']':
|
||||
case '}':
|
||||
case '>':
|
||||
*token = VIPS_TOKEN_RIGHT;
|
||||
p += 1;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user