Re: [PATCH v2] emerge --search: auto-detect regular expressions (bug 737480)

Zac Medico <[email protected]>
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
On 9/1/20 11:08 PM, Michał Górny wrote:
> On Tue, 2020-09-01 at 19:59 -0700, Zac Medico wrote:
>> Automatically detect regular expressions when the search string
>> contains any of these regular expression characters or character
>> sequences:
>>
>>   ^ $ * [ ] { } | ? .+
> 
> Isn't this going to break search for gtk+?

It matches the literal sequence '.+', so a 'gtk+' search string
will not trigger it. Since '.' is not allowed in package names,
it shouldn't be very useful except for regular expressions.
-- 
Thanks,
Zac
signature.asc (application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQKTBAEBCgB9FiEE8OgXaltWzqgSupCu0HX7jBBKPSAFAl9PPkRfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYw
RTgxNzZBNUI1NkNFQTgxMkJBOTBBRUQwNzVGQjhDMTA0QTNEMjAACgkQ0HX7jBBK
PSDsQhAAy1ZkJhUxSXL5fBJAVXhRGHyjJMSNHNhimGLeiOOy0ca79I5zpIlEp0Qo
GC//h2CLnjVB3pAUvhnCKLmRTQhrxz6sGkhP2dvy4oIzD/kVYP/ohtutH39Vv2un
XOuR5HRTj5olBnvz7Wnvh4u78T5WipagJELzxT2RZn4N6zNkeYcuOHA3XCOslaQz
cjwjXxDQ48ftfHsASwOM6jQHRle0FqsVUQNBeo4ueYU11uuZpKRC/ckAV32QyYJI
Sn5k0N6bsCKL3fdfDM4OK8S+wFbeq0F9qCljjAHt+YBf0so29YSiQ51NN3ZzNguw
9k1zum+EPgeRvg6DaGMbNZ45hyV+k/5lmtZGGi+uT83nj1848jEweUmbP6nCKBx0
/jf8/9vLsA3sy71nuG+gk54DCauJT6frCG36X6mubdslSCGYdwpte9F3T7hCHcNn
qgjsJZ3F0Pe2xcDPp8U+b2AZuKSVVc4ZfoMmVMW6PFER+gMufEccfOYlt09MJrUJ
II/OzpHBeC2ijrqAVU2sliP2gBKtVnV00eGf2+IBVx9Rk0LWm18KgMXYqumVTZYz
WxK/bkcwWq26cDJUdvG4YmbSEAEznjxVdti+SkVcAuSUGPujdlo15WX7gN92HfFh
dMtM56ZF9BnsjK+bUqPi0bAPuLH8bP/k1dnNEsijR8Fwm5+hCBg=
=5Xxh
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.