Commit 84c8108
committed
Add hyperlink validation and refactor
Refactored `CreateHyperlink` to improve clarity and maintainability.
- Changed `sourceLinkAbsoluteUri` declaration to `string`.
- Added `IsValidHyperlink` method to validate hyperlink format and protocol.
- Introduced `GetAbsoluteUri` method for reusable URI parsing logic.
- Enhanced logging to provide detailed warnings for invalid hyperlinks.
- Improved code readability by modularizing validation and URI handling.CreateHyperlink
1 parent bba5d81 commit 84c8108
File tree
1 file changed
+31
-1
lines changed- src/MigrationTools.Clients.TfsObjectModel/Tools
1 file changed
+31
-1
lines changedLines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
434 | 439 | | |
435 | 440 | | |
436 | 441 | | |
| |||
458 | 463 | | |
459 | 464 | | |
460 | 465 | | |
| 466 | + | |
| 467 | + | |
461 | 468 | | |
462 | 469 | | |
463 | 470 | | |
| |||
489 | 496 | | |
490 | 497 | | |
491 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
492 | 522 | | |
493 | 523 | | |
0 commit comments