mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #03387
[Bug 1233098] [NEW] Allow searchRoom() to accept search types
Public bug reported:
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.
** Affects: mudlet
Importance: Wishlist
Status: New
--
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 the MUD client:
New
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
Follow ups
References