Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤준석
/
mamuri-bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
유명현
2022-05-30 23:55:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7c833bc83f79279740c9b5ae77f53672282af151
7c833bc8
1 parent
82b6daf0
EDIT: Delete Console.log
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
server/chatbot/message/setCarouselMessage.js
server/chatbot/message/setCarouselMessage.js
View file @
7c833bc
...
...
@@ -72,7 +72,6 @@ function setCarouselMessage(mamuls, keyword) {
}
}
console
.
log
(
`unparsed extraInfo : \n
${
mamuls
[
i
][
"extraInfo"
]}
`
);
let
searchValue
=
"\n"
;
let
pos
=
0
;
let
foundPos
=
0
;
...
...
@@ -84,12 +83,10 @@ function setCarouselMessage(mamuls, keyword) {
if
(
foundPos
!==
-
1
)
{
mamuls
[
i
][
"extraInfo"
]
=
mamuls
[
i
][
"extraInfo"
].
slice
(
0
,
foundPos
)
+
"\n..."
;
console
.
log
(
`parsed extraInfo : \n
${
mamuls
[
i
][
"extraInfo"
]}
`
);
}
if
(
mamuls
[
i
][
"extraInfo"
].
length
>
40
)
{
mamuls
[
i
][
"extraInfo"
]
=
mamuls
[
i
][
"extraInfo"
].
slice
(
0
,
40
)
+
"\n..."
;
console
.
log
(
`parsed extraInfo : \n
${
mamuls
[
i
][
"extraInfo"
]}
`
);
}
}
// } else if (mamuls[i]["extraInfo"].length > 70) {
...
...
Please
register
or
login
to post a comment