PATCH: BR# 71590: Workaround for QRegExp bug in wildcard matching (globbing) mode.

Dawit A. adawit at kde.org
Mon Jan 5 00:57:06 GMT 2004


Hello,

The attached pactch addresses a bug in QRegExp::search that causes it to make 
incorrect matches in wildcard (file globbing) mode.  The fix is validated by 
the included test case. I have reported the bug to TrollTech.

QRegExp rx ("*.kde", true, true)
int res = rx.search( "www.kde.org");  // Should return -1. DOES NOT.
bool res2 = rx.exactMatch("www.kde.org"); // Works correctly.

-- 
Regards,
Dawit A.
"Preach what you practice, practice what you preach"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kpac-20040104.diff
Type: text/x-diff
Size: 1540 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040104/6d21cd20/attachment.diff>


More information about the kde-core-devel mailing list