FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix JavaScript escaped line terminator extraction by nightcityblade · Pull Request #1315 · python-babel/babel · GitHub

Fix JavaScript escaped line terminator extraction - #1315

Open
nightcityblade wants to merge 1 commit into
python-babel:masterfrom
nightcityblade:fix/issue-1056
Open

Fix JavaScript escaped line terminator extraction#1315
nightcityblade wants to merge 1 commit into
python-babel:masterfrom
nightcityblade:fix/issue-1056

Conversation

Copy link
Copy Markdown

Fixes #1056

Summary

  • remove escaped line terminators when unquoting JavaScript strings
  • add extraction regression coverage for a string continued across a newline

Tests

  • .venv/bin/python -m pytest -q tests/messages/test_jslexer.py tests/messages/test_js_extract.py
  • .venv/bin/pre-commit run --files babel/messages/jslexer.py tests/messages/test_js_extract.py

akx added the area/javascript JavaScript extractor label Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/javascript JavaScript extractor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

javascript extraction method gives unexpected results with escaped newlines

2 participants


Back | FazBrowse Home | New Git URL