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

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


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 = "");  // Should return -1. DOES NOT.
bool res2 = rx.exactMatch(""); // Works correctly.

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: <>

More information about the kde-core-devel mailing list