Skip to content

Commit

Permalink
docs: changelog entry and docs for WeblateOrg#13728 / WeblateOrg#13786
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 13, 2025
1 parent 35c814c commit 7d7ca45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Weblate 5.10
* :ref:`component-enforced_checks` are now applied on strings imported from the repository.
* Reduced false positives in :ref:`check-end-colon` and :ref:`check-end-stop` for CJK languages.
* OpenAPI schema for API includes more information.
* :ref:`check-regex` supports advanced regular expressions.

.. rubric:: Bug fixes

Expand Down
14 changes: 14 additions & 0 deletions docs/user/checks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1413,13 +1413,27 @@ Regular expression
:Flag to enable: ``regex``
:Flag to ignore: ``ignore-regex``

.. versionchanged:: 5.10

Extended support for advanced regular expressions including Unicode codepoint properties.

Translation does not match regular expression. The expression is either extracted from the
translation file or defined manually using ``regex`` flag:

.. code-block:: text
regex:^foo|bar$
The matching also supports Unicode codepoint properties, including scripts and blocks:

.. code-block:: text
regex:^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$
.. seealso::

`regex documentation <https://github.com/mrabarnett/mrab-regex>`_

.. _check-rst-syntax:

reStructuredText syntax error
Expand Down

0 comments on commit 7d7ca45

Please sign in to comment.