[PATCH] make ksnapshot increment the last number

Hoàng Đức Hiếu hieu.d.hoang at gmail.com
Sun Oct 7 06:19:35 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  Hi,

 My previous patch has a problem, it only matches the last digit in
the filename, so "snapshot19.png" is followed by "snapshot110.png".
amrit on #qt suggested using "[^\\d](\\d+)" to match as far to the
left as possible. This regexp doesn't match when the only number is at
the start of the filename, so I used a second regexp to match that
case.

 Hi Aaron, lucky that you haven't committed the previous one. I am
applying for an svn account, so I might be able to commit this and be
responsible for it in the log. Wish me luck :-)

 Thanks again for any feedback.

  Hiếu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHCGxUh4dScvxKz04RAr0jAJwLJ0q/4D83PVS1OkDZjSomAUFRoACghvRJ
ieiTppgtJ79xDTAC7/Egy7M=
=Cf5/
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksnapshot-increment-last-number-fixed.patch
Type: text/x-diff
Size: 1395 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071007/27130245/attachment.patch>


More information about the kde-core-devel mailing list