You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
victor
committed
Fix: Correct offset for Unicode escape errors
This change corrects an error where the offset for a Unicode escape error was incorrectly adjusted. Previously, the offset was manually incremented by 2, causing errors for invalid escape sequences like `\uD83D` to report an incorrect position. The `handle_unicode_escape_from_slice` function already handles the offset correctly, so the manual adjustment was redundant and wrong. This fix removes the unnecessary offset adjustment, ensuring that error positions are now reported accurately.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
3
3
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4
4
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
6
+
## [0.1.3] - 2025-09-26
7
+
8
+
### Fixed
9
+
10
+
-**Corrected offset for Unicode escape errors.** Previously, an incorrect manual adjustment of `+2` was applied to the error offset, causing invalid escape sequences like `\uD83D` to report the wrong position. This change removes the redundant adjustment, ensuring error positions are now reported accurately.
0 commit comments