mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #04817
[Bug 1233098] Re: Allow searchRoom() to accept search types
Migrating issues to Github, please follow the new discussion here:
https://github.com/Mudlet/Mudlet/issues/697
This issue needs to be closed and there is no appropriate status, so
will set it to "Opinion" just for migration purposes.
** Bug watch added: github.com/Mudlet/Mudlet/issues #697
https://github.com/Mudlet/Mudlet/issues/697
** Changed in: mudlet
Status: New => Opinion
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1233098
Title:
Allow searchRoom() to accept search types
Status in Mudlet:
Opinion
Bug description:
Going off the user suggestion at
http://forums.mudlet.org/viewtopic.php?f=5&t=92&p=19054#p18722 and
practical experience of having to filter searchRoom() results (or
create own search function based off getRooms()), it would be really
useful of searchRoom() accepted a second parameter that defined the
search type - none for the default of substring, and then "perl regex"
for perl regex, "exact match" for an exact match, "begin of line
substring" and "substring".
I'm not sure how to deal with cases yet - there will be times when you
will not have exact case of the string you're searching for. Perhaps
the perl regex search pattern with an (?i) will take care of it,
though - might be better than introducing a third argument into the
mix.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1233098/+subscriptions
References