Skip to content

Commit

Permalink
[RecordBuilder] Convert forum links properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bitWolfy committed Mar 28, 2023
1 parent c27c956 commit 1ca0649
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/components/RecordBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export default class RecordBuilder extends Component {
.trim()
.replace(/https:\/\/e(?:621|926).net\//g, "/") // Make links relative
.replace(/\/posts\/(\d+)#comment-(\d+)/g, "/comments/$2") // Convert comment links
.replace(/\/forum_topics\/(\d+)(?:\?page=\d+)?#forum_post_(\d+)/g, "/forum_posts/$2") // Convert forum post links
.replace(/\?lr=\d+&/, "?") // Trim the tag history links
.replace(/\?commit=Search&/, "?") // Get rid of the useless search parameter

Expand Down

0 comments on commit 1ca0649

Please sign in to comment.