Fix a couple of edge cases for WildcardUnix matching
authorAndy Shaw <andy.shaw@digia.com>
Thu, 19 Jan 2012 16:32:41 +0000 (17:32 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 26 Jan 2012 06:02:25 +0000 (07:02 +0100)
commit8eb2546bf23419e20064f4cf5c308e77831b3ee5
treeb3a261a6dadc0f98e4d57ae1fd25972db1ef773d
parent4dae8c1aff6a4d83fdabe366c6711df7ff867887
Fix a couple of edge cases for WildcardUnix matching

Fix a couple of cases where WildcardUnix was not matching when the
string was just [] or ended with a \.

The testWildcardEscaping() test has been extended to account for these
two cases too.

Integrate 7ce3726aea4be2dfdb57966a4482f66fec6f8f57 from 4.8

Task-number: QTBUG-20897
Change-Id: I7a07ac008473fa7a080db752e189f6404842603f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qregexp.cpp
tests/auto/corelib/tools/qregexp/tst_qregexp.cpp