-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12465 from keymanapp/fix/developer/12451-prevent-…
…invalid-string-ids fix(developer): prevent invalid string ids
- Loading branch information
Showing
4 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
17 changes: 17 additions & 0 deletions
17
developer/src/kmc-ldml/test/fixtures/sections/vars/fail-invalid-identifiers.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" conformsTo="45"> | ||
<info name="vars-minimal"/> | ||
|
||
<keys /> | ||
|
||
<!-- from spec --> | ||
<variables> | ||
<string id="invalid-string" value="yes" /> <!-- ERROR_InvalidVariableIdentifer --> | ||
<set id="invalid-set" value="A B C D E FF" /> <!-- ERROR_InvalidVariableIdentifer --> | ||
<uset id="invalid-uset" value="[कसतनमह]" /> <!-- ERROR_InvalidVariableIdentifer --> | ||
<set id="a_marker_name_more_than_32_chars_long" value="Y E S" /> <!-- ERROR_InvalidVariableIdentifer --> | ||
<string id="😡" value="UPPERCASE" /> <!-- ERROR_InvalidVariableIdentifer --> | ||
</variables> | ||
|
||
</keyboard3> |
This file contains 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