mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Make $an funcparser fun understand capitalized vowels
This commit is contained in:
parent
1ee104031c
commit
fbb2e882e4
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## Main
|
||||
|
||||
- Bug fix: $an() inlinefunc didn't understand to use 'an' words starting with a
|
||||
capital vowel
|
||||
|
||||
## Evennia 1.1.1
|
||||
|
||||
- Bug fix: Better handler malformed alias-regex given to nickhandler. A
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ import inspect
|
|||
import random
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from evennia.utils import logger, search
|
||||
from evennia.utils.utils import (
|
||||
callables_from_module,
|
||||
|
|
@ -706,7 +705,7 @@ def funcparser_callable_an(*args, **kwargs):
|
|||
if not args:
|
||||
return ""
|
||||
item = str(args[0])
|
||||
if item and item[0] in "aeiouy":
|
||||
if item and item[0] in "aeiouyAEIOUY":
|
||||
return f"an {item}"
|
||||
return f"a {item}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue