mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 08:46:31 +01:00
remove disambiguator from rpsystem search string
This commit is contained in:
parent
bb2528276b
commit
0fa3095359
1 changed files with 3 additions and 0 deletions
|
|
@ -422,7 +422,10 @@ def parse_sdescs_and_recogs(
|
|||
|
||||
# first see if there is a number given (e.g. 1-tall)
|
||||
num_identifier, _ = marker_match.groups("") # return "" if no match, rather than None
|
||||
# get the beginning of the actual text, minus the numeric identifier
|
||||
match_index = marker_match.start()
|
||||
if num_identifier:
|
||||
match_index += len(num_identifier) + 1
|
||||
# split the emote string at the reference marker, to process everything after it
|
||||
head = string[:match_index]
|
||||
tail = string[match_index + 1 :]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue