mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
commit
7f1d4594ff
2 changed files with 6 additions and 0 deletions
|
|
@ -365,6 +365,10 @@ def search_prototype(key=None, tags=None, require_single=False, return_iterators
|
|||
be found as a match.
|
||||
|
||||
"""
|
||||
# prototype keys are always in lowecase
|
||||
if key:
|
||||
key = key.lower()
|
||||
|
||||
# search module prototypes
|
||||
|
||||
mod_matches = {}
|
||||
|
|
|
|||
|
|
@ -336,6 +336,8 @@ class TestProtLib(EvenniaTest):
|
|||
self.assertTrue(match)
|
||||
match = protlib.search_prototype(self.prot["prototype_key"])
|
||||
self.assertEqual(match, [self.prot])
|
||||
match = protlib.search_prototype(self.prot["prototype_key"].upper())
|
||||
self.assertEqual(match, [self.prot])
|
||||
|
||||
|
||||
@override_settings(PROT_FUNC_MODULES=["evennia.prototypes.protfuncs"], CLIENT_DEFAULT_WIDTH=20)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue