Merged
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
6 tasks
60bd536 to
39cea9a
Compare
- update unescaping from \u{…} to \uXXXX
#10319
39cea9a to
c49dab2
Compare
- update unescaping from \u{…} to \uXXXX in regex
- re-unescape in the string analyzr (empty-compiler.ts) so that we catch PUA etc.
- fix some XML files that had bad DTDs
- common; updates to string util api
#10319
Base automatically changed from
chore/core/10320-refactor-epic-ldml
to
master
January 11, 2024 21:38
Member
Author
|
issues repro'ed on linux locally and also wasm (butonly under linux, from mac wasm worked) |
- match sentinels as \\u… - support \Uxxxxxxxx for >0xffff - more escaping stuff #10319
6 tasks
6 tasks
mcdurdin
approved these changes
Jan 17, 2024
common/web/types/src/util/util.ts
Outdated
| } | ||
|
|
||
| /** chars that must be escaped: syntax, C0 + C1 controls */ | ||
| const REGEX_SYNTAX_CHAR = /^[\u0000-\u001F\u007F-\u009F{}\[\]\\?.^$*-]$/; |
Member
There was a problem hiding this comment.
(, ), and / also need escaping, right?
Collaborator
|
Changes in this pull request will be available for download in Keyman version 17.0.247-alpha |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
\u{…}to\uXXXXformat if they are syntax chars otherwise leave escaped\uXXXXformat again#10319
@keymanapp-test-bot skip