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
|
# Changelog
|
||||||
|
|
||||||
|
## Main
|
||||||
|
|
||||||
|
- Bug fix: $an() inlinefunc didn't understand to use 'an' words starting with a
|
||||||
|
capital vowel
|
||||||
|
|
||||||
## Evennia 1.1.1
|
## Evennia 1.1.1
|
||||||
|
|
||||||
- Bug fix: Better handler malformed alias-regex given to nickhandler. A
|
- Bug fix: Better handler malformed alias-regex given to nickhandler. A
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ import inspect
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
from evennia.utils import logger, search
|
from evennia.utils import logger, search
|
||||||
from evennia.utils.utils import (
|
from evennia.utils.utils import (
|
||||||
callables_from_module,
|
callables_from_module,
|
||||||
|
|
@ -706,7 +705,7 @@ def funcparser_callable_an(*args, **kwargs):
|
||||||
if not args:
|
if not args:
|
||||||
return ""
|
return ""
|
||||||
item = str(args[0])
|
item = str(args[0])
|
||||||
if item and item[0] in "aeiouy":
|
if item and item[0] in "aeiouyAEIOUY":
|
||||||
return f"an {item}"
|
return f"an {item}"
|
||||||
return f"a {item}"
|
return f"a {item}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue