(message)
| 258 | } |
| 259 | |
| 260 | function parseComment(message) { |
| 261 | const doc = nlp(message); |
| 262 | |
| 263 | const action = doc.toLowerCase().match("#Action").normalize().out("string"); |
| 264 | |
| 265 | if (action.match("add")) { |
| 266 | return parseAddComment(message, action); |
| 267 | } |
| 268 | |
| 269 | return { |
| 270 | action: false, |
| 271 | }; |
| 272 | } |
| 273 | |
| 274 | module.exports = parseComment; |
no test coverage detected