Skip to content

Commit

Permalink
Merge branch 'main' into fix-reply-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Dec 8, 2023
2 parents 3fe1c32 + a9fee68 commit 8befd10
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/devhub/entity/post/PostEditor.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
const cleanDescription = (description) => {
return description
? description.replace(
/###### Requested amount: .+?\n###### Requested sponsor: @[^\s]+\n/g,
""
)
: description;
};

initState({
seekingFunding: props.seekingFunding ?? false,
author_id: context.accountId,
Expand Down Expand Up @@ -89,13 +98,6 @@ const labels = labelStrings.map((s) => {
return { name: s };
});

const cleanDescription = (description) => {
return description.replace(
/###### Requested amount: .+?\n###### Requested sponsor: @[^\s]+\n/g,
""
);
};

if (!state.draftStateApplied && props.draftState) {
State.update({ ...props.draftState, draftStateApplied: true });
}
Expand Down

0 comments on commit 8befd10

Please sign in to comment.