wikitextparser 0.56.1__tar.gz → 0.56.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/CHANGELOG.rst +4 -0
  2. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/PKG-INFO +1 -1
  3. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/__init__.py +1 -1
  4. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_wikitext.py +3 -3
  5. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.coveragerc +0 -0
  6. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.github/workflows/tests.yml +0 -0
  7. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.gitignore +0 -0
  8. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/.readthedocs.yaml +0 -0
  9. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/LICENSE.md +0 -0
  10. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/README.rst +0 -0
  11. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/CHANGELOG.rst +0 -0
  12. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/Makefile +0 -0
  13. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/README.rst +0 -0
  14. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/conf.py +0 -0
  15. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/index.rst +0 -0
  16. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/docs/make.bat +0 -0
  17. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/pyproject.toml +0 -0
  18. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_argument.py +0 -0
  19. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_cell.py +0 -0
  20. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_comment_bold_italic.py +0 -0
  21. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_config.py +0 -0
  22. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_externallink.py +0 -0
  23. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_parameter.py +0 -0
  24. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_parser_function.py +0 -0
  25. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_section.py +0 -0
  26. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_spans.py +0 -0
  27. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_table.py +0 -0
  28. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_tag.py +0 -0
  29. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_template.py +0 -0
  30. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_wikilink.py +0 -0
  31. {wikitextparser-0.56.1 → wikitextparser-0.56.2}/wikitextparser/_wikilist.py +0 -0
@@ -1,3 +1,7 @@
1
+ v0.56.2
2
+ -------
3
+ * Fixed a bug in ``external_links`` property where ``|`` was recognized as part of the link by mistake. (#139)
4
+
1
5
  v0.56.1
2
6
  -------
3
7
  * Fixed a bug in ``get_sections`` when ``top_levels_only`` was ``True``.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wikitextparser
3
- Version: 0.56.1
3
+ Version: 0.56.2
4
4
  Summary: A simple parsing tool for MediaWiki's wikitext markup.
5
5
  Keywords: MediaWiki,wikitext,parser
6
6
  Author-email: 5j9 <5j9@users.noreply.github.com>
@@ -1,5 +1,5 @@
1
1
  # Scheme: [N!]N(.N)*[{a|b|rc}N][.postN][.devN]
2
- __version__ = '0.56.1'
2
+ __version__ = '0.56.2'
3
3
 
4
4
  from . import _wikitext
5
5
  from ._argument import Argument # noqa: F401
@@ -63,8 +63,8 @@ EXTERNAL_LINK = (
63
63
  rb'(?>' + BARE_EXTERNAL_LINK + rb'|' + BRACKET_EXTERNAL_LINK + rb')'
64
64
  )
65
65
  EXTERNAL_LINK_FINDITER = rc(EXTERNAL_LINK, IGNORECASE).finditer
66
- INVALID_EXT_CHARS_SUB = rc( # the [:-4] slice allows \[ and \]
67
- rb'[' + INVALID_URL_CHARS[:-4] + rb'{}]'
66
+ INVALID_EL_TPP_CHRS_SUB = rc( # the [:-4] slice allows \[ and \]
67
+ rb'[' + INVALID_URL_CHARS[:-4] + rb'{}|]'
68
68
  ).sub
69
69
 
70
70
  # Sections
@@ -1205,7 +1205,7 @@ class WikiText:
1205
1205
  byte_array[s - ss : e - ss] = (e - s) * b' '
1206
1206
  for type_ in 'Template', 'ParserFunction', 'Parameter':
1207
1207
  for s, e, _, _ in subspans(type_):
1208
- byte_array[s - ss : e - ss] = INVALID_EXT_CHARS_SUB(
1208
+ byte_array[s - ss : e - ss] = INVALID_EL_TPP_CHRS_SUB(
1209
1209
  b' ', byte_array[s:e]
1210
1210
  )
1211
1211
  return byte_array