Skip to content

Commit

Permalink
줄바꿈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-DoHa committed Nov 24, 2022
1 parent e553523 commit 9782678
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Binary file modified .gradle/7.5.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file not shown.
Binary file modified build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ public void write(MessageCreate messageCreate) {
}
tmpString = messageCreate.getBody().substring(startIndex, startIndex+23);
int lastIndex = tmpString.length()-1;

if(tmpString.contains("\n")) {
for(int j = 0; j < tmpString.length(); j++) {
if(tmpString.charAt(j) == '\n') {
lastIndex = j;
tmpString = tmpString.substring(startIndex, j+1);
i--;
break;
}
}
}

if(tmpString.contains(" ")) {
while(tmpString.charAt(lastIndex) != ' ') {
lastIndex--;
Expand Down

0 comments on commit 9782678

Please sign in to comment.