Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
Release version 1.0.6
  • Loading branch information
alirzaev committed Jan 24, 2019
2 parents 02b464b + f374c53 commit 0e689a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app/utils/beautify.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ module.exports = {
.replace(/Лекция/im, 'Лек.')
.replace(/Лабораторная работа/im, 'Лаб.')
.replace(/Практическое занятие/im, 'Пр.')
.replace(/^([А-Яа-я]+-\d{4}-\d{2}-\d{2}, )/im, '') // remove the group name from the lesson's description
.replace(/\s?([А-Яа-я]+-\d{4}-\d{2}-\d{2}, )/gim, '; ') // first occurrence replace to empty string, others to semicolon
.replace(/^([А-Яа-я]+-\d{4}-\d{2}-\d{2}, )/im, '\n ') // replace group name with 3 spaces
.replace(/\s?([А-Яа-я]+-\d{4}-\d{2}-\d{2}, )/gim, ';\n ') // for indentation
.replace(/_/gim, '') // escape markdown characters
.replace(/\*/gim, '')
.replace(/\[/gim, '')
.replace(/`/gim, '')
),

rings: (rings) => rings.map((rings, index) => `${index + 1}) ${rings.start}-${rings.end}`),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "telegram-bot",
"version": "1.0.5",
"version": "1.0.6",
"main": "server.js",
"scripts": {
"start": "node app/server.js",
Expand Down

0 comments on commit 0e689a0

Please sign in to comment.