Skip to content

Commit

Permalink
Fix invalid regex escape character causing a on Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
marteinn committed Dec 28, 2023
1 parent 7eddfaa commit adda376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
### Added
### Changed
### Fixed
- Fix invalid regex escape character causing a `SyntaxWarning` on Python 3.12 (@jorenham)

### Removed

## [8.1.0] - 2023.12.22
Expand Down
2 changes: 1 addition & 1 deletion wagtailgeowidget/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Dict, Optional

geos_ptrn = re.compile(
"^SRID=([0-9]{1,});POINT\s?\((-?[0-9\.]{1,})\s(-?[0-9\.]{1,})\)$"
r"^SRID=([0-9]{1,});POINT\s?\((-?[0-9\.]{1,})\s(-?[0-9\.]{1,})\)$"
)


Expand Down

0 comments on commit adda376

Please sign in to comment.