Repository navigation
Commit 2380d22
authored
fix(comments): stop hyperlinks truncating at hyphens (#30)
The auto-linkify regex for comment URLs used [\w/_\.]* for the path
segment, which excludes '-'. A link like
https://youtu.be/T1MnG-gKgF0 was rendered as a clickable
https://youtu.be/T1MnG followed by plain-text -gKgF0. Added '-' to
the path character class in all three places this regex is
duplicated.1 parent cfba83f commit 2380d22
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | | - | |
| 1349 | + | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
| 1126 | + | |
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
905 | | - | |
| 905 | + | |
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| |||
0 commit comments