plug-ins: discard leading 0s in regular expression for cursor size/delay
Leading 0s have no special value, we use base 10 anyway. Removing leading 0s allows to not trigger the 8-digit test, hence modify a valid cursor size unecessarily.
This commit is contained in:
@ -1471,7 +1471,7 @@ save_image (const gchar *filename,
|
||||
* define this in that function is easy to read but place here to
|
||||
* reduce overheads.
|
||||
*/
|
||||
re = g_regex_new ("[(][ ]*(\\d+)[ ]*(px|ms)[ ]*[)]",
|
||||
re = g_regex_new ("[(][ 0]*(\\d+)[ ]*(px|ms)[ ]*[)]",
|
||||
G_REGEX_CASELESS | G_REGEX_OPTIMIZE,
|
||||
0,
|
||||
NULL);
|
||||
|
||||
Reference in New Issue
Block a user