Skip to content

Commit

Permalink
fix: 修正代码注释解析问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiuChen committed Jan 5, 2024
1 parent 84de77d commit 59a06da
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/store/useHistoryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export const useHistoryStore = defineStore('history', {
this.historys = res.map((item: any) => {
// clear escape character in content and remove `"` at the beginning and end
const plainCode = item.value
.replace(/\\n/g, '\n')
.replace(/\\r/g, '\r')
.replace(/\\t/g, '\t')
.slice(1)
.slice(0, -1)

const name =
parseCommentBlock(plainCode)?.name ||
Expand Down

0 comments on commit 59a06da

Please # to comment.