Commit 535c167
committed
Prefix unquoted keys and values in
`L10nHelper.merge_strings` rewrites each key to add the caller's prefix, but its line
matcher only handled `[A-Z0-9_]` keys with a *quoted* value. An unquoted key
containing `. - $ : /`, or any line with an *unquoted* value (`CFBundleName = WordPress;`),
was written to the merged file without the prefix while still being bookkept *with* it
— an inconsistency that can resurface the collisions the prefix avoids and break
downstream key extraction.
The matcher now accepts the full unquoted-string character set `plutil` allows. The
unquoted-value case keys on the fact that an unquoted string can't contain spaces, so
it won't mistake comment prose (`and = a red herring ...`) for a key/value pair — a
case the fixtures deliberately guard.merge_strings
1 parent 9de2a6c commit 535c167
3 files changed
Lines changed: 33 additions & 2 deletions
File tree
- lib/fastlane/plugin/wpmreleasetoolkit/helper/ios
- spec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
103 | 125 | | |
104 | 126 | | |
105 | 127 | | |
| |||
0 commit comments