Commit 3ebf199
Fix issues with long placeholders in hosts. (#335)
* Hosts can be very long if they have placeholders (in templates) and this might not process correctlty. So we replace the placeholders with short ones and rereplace them after processing.
This is safe as this is only done for templates and placeholder format is well understood.
Added tests
* Fix formatting
* Added comment.
* Updated comment.
Co-authored-by: Andreas Rossbacher <andreas.rossbacher@airbnb.com>1 parent 35d3427 commit 3ebf199
File tree
2 files changed
+30
-2
lines changed- deeplinkdispatch-base/src
- main/java/com/airbnb/deeplinkdispatch
- test/java/com/airbnb/deeplinkdispatch
2 files changed
+30
-2
lines changedLines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
324 | | - | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
1215 | 1217 | | |
1216 | 1218 | | |
1217 | 1219 | | |
1218 | | - | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1219 | 1236 | | |
1220 | 1237 | | |
1221 | 1238 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
| |||
0 commit comments