Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 20, 2023
2 parents 5407336 + 924695c commit 6a897ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,9 @@
v6.0.3
======

* #136: A/an support now more correctly honors leading
capitalized words and abbreviations.

v6.0.2
======

Expand Down
2 changes: 1 addition & 1 deletion inflect/__init__.py
Expand Up @@ -1854,7 +1854,7 @@ def get_si_pron(thecase, word, gender) -> str:

A_abbrev = re.compile(
r"""
(?! FJO | [HLMNS]Y. | RY[EO] | SQU
^(?! FJO | [HLMNS]Y. | RY[EO] | SQU
| ( F[LR]? | [HL] | MN? | N | RH? | S[CHKLMNPTVW]? | X(YL)?) [AEIOU])
[FHLMNRSX][A-Z]
""",
Expand Down
1 change: 0 additions & 1 deletion tests/test_an.py
Expand Up @@ -21,7 +21,6 @@ def test_an():
assert p.an("wild PIKACHU appeared") == "a wild PIKACHU appeared"


@__import__('pytest').mark.xfail(reason="#136")
def test_an_abbreviation():
p = inflect.engine()

Expand Down

0 comments on commit 6a897ad

Please sign in to comment.