mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update utils.py
Added arguments description for use_display_len
This commit is contained in:
parent
a95587b056
commit
23b4ce7dca
1 changed files with 3 additions and 0 deletions
|
|
@ -2307,6 +2307,9 @@ def m_len(target, use_display_len=False):
|
|||
Args:
|
||||
target (str): A string with potential MXP components
|
||||
to search.
|
||||
use_display_len (bool, optional): If `True`, use display_len
|
||||
instead of len. Default is `False`, use `True` if target
|
||||
contain east asian characters.
|
||||
|
||||
Returns:
|
||||
length (int): The length of `target`, ignoring MXP components.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue