Fixed regex for blocks of code
This commit is contained in:
parent
fb1f274eba
commit
1d0709bcf6
@ -1240,7 +1240,7 @@ angular.module('izhukov.utils', [])
|
||||
var spotifyRegExp = /(https?:\/\/(open\.spotify\.com|play\.spotify\.com|spoti\.fi)\/(.+)|spotify:(.+))/i
|
||||
|
||||
var markdownTestRegExp = /[`_*@]/
|
||||
var markdownRegExp = /(^|\s)(````?)([\s\S]+?)(````?)([\s\n\.,:?!;]|$)|(^|\s)(`|\*\*|__)([^\n]+?)\7([\s\.,:?!;]|$)|@(\d+)\s*\((.+?)\)/
|
||||
var markdownRegExp = /(^|\s|\n)(````?)([\s\S]+?)(````?)([\s\n\.,:?!;]|$)|(^|\s)(`|\*\*|__)([^\n]+?)\7([\s\.,:?!;]|$)|@(\d+)\s*\((.+?)\)/m
|
||||
|
||||
var siteHashtags = {
|
||||
Telegram: 'tg://search_hashtag?hashtag={1}',
|
||||
|
Loading…
Reference in New Issue
Block a user