Commit 67a02c5
ScorePriority: fixed error message about invalid CUSIP length.
1.) Corrected placeholder value for error message
2.) Do what the comment says and reject all lengths other than 9
3.) Fixed typo in comment.
It is questionable to match CUSIPS with "(?<wkn>.*)" btw. Particularly
as the dot also matches whitespace that later has to be dropped with
trim() again. \w would be better but without more test cases we have
to guess whether it needs to be surrounded with \s.1 parent 9e26899 commit 67a02c5
File tree
2 files changed
+4
-4
lines changed- name.abuchen.portfolio.tests/src/name/abuchen/portfolio/datatransfer/pdf/scorepriorityinc
- name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/pdf
2 files changed
+4
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
786 | | - | |
| 786 | + | |
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
0 commit comments