|
|
@ -1239,7 +1239,7 @@ angular.module('izhukov.utils', []) |
|
|
|
var spotifyRegExp = /(https?:\/\/(open\.spotify\.com|play\.spotify\.com|spoti\.fi)\/(.+)|spotify:(.+))/i |
|
|
|
var spotifyRegExp = /(https?:\/\/(open\.spotify\.com|play\.spotify\.com|spoti\.fi)\/(.+)|spotify:(.+))/i |
|
|
|
|
|
|
|
|
|
|
|
var markdownTestRegExp = /[`_*@]/ |
|
|
|
var markdownTestRegExp = /[`_*@]/ |
|
|
|
var markdownRegExp = /(^|\s)(````?)([\s\S]+?)(````?)([\s\n\.,:?!;]|$)|(^|\s)([`*_])([^\n]+?)\7([\s\.,:?!;]|$)|@(\d+)\s*\((.+?)\)/ |
|
|
|
var markdownRegExp = /(^|\s)(````?)([\s\S]+?)(````?)([\s\n\.,:?!;]|$)|(^|\s)(`|\*\*|__)([^\n]+?)\7([\s\.,:?!;]|$)|@(\d+)\s*\((.+?)\)/ |
|
|
|
|
|
|
|
|
|
|
|
var siteHashtags = { |
|
|
|
var siteHashtags = { |
|
|
|
Telegram: 'tg://search_hashtag?hashtag={1}', |
|
|
|
Telegram: 'tg://search_hashtag?hashtag={1}', |
|
|
@ -1257,8 +1257,8 @@ angular.module('izhukov.utils', []) |
|
|
|
|
|
|
|
|
|
|
|
var markdownEntities = { |
|
|
|
var markdownEntities = { |
|
|
|
'`': 'messageEntityCode', |
|
|
|
'`': 'messageEntityCode', |
|
|
|
'*': 'messageEntityBold', |
|
|
|
'**': 'messageEntityBold', |
|
|
|
'_': 'messageEntityItalic' |
|
|
|
'__': 'messageEntityItalic' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
@ -1824,13 +1824,13 @@ angular.module('izhukov.utils', []) |
|
|
|
|
|
|
|
|
|
|
|
case 'messageEntityBold': |
|
|
|
case 'messageEntityBold': |
|
|
|
code.push( |
|
|
|
code.push( |
|
|
|
'*', entityText, '*' |
|
|
|
'**', entityText, '**' |
|
|
|
) |
|
|
|
) |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
case 'messageEntityItalic': |
|
|
|
case 'messageEntityItalic': |
|
|
|
code.push( |
|
|
|
code.push( |
|
|
|
'_', entityText, '_' |
|
|
|
'__', entityText, '__' |
|
|
|
) |
|
|
|
) |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|