Skip to content

Commit

Permalink
Fix data upgrader
Browse files Browse the repository at this point in the history
  • Loading branch information
Theaninova committed Jun 2, 2021
1 parent cfad5c0 commit c508b6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
22 changes: 8 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/kotlin/org/hmcore/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object Main {
var content = ""
file.bufferedReader().readLines().forEach {
content += it
.replace(",\"mentionedRole\":", ",\"type\":\"BLOGPOST\",\"mentionedRole\":")
.replace("""mentionedRole":""".toRegex(),"""type":"BLOGPOST","mentionedRole":""")
}
file.writeBytes(content.encodeToByteArray())
}
Expand Down

0 comments on commit c508b6e

Please sign in to comment.