Browse Source

Fixed regex for blocks of code

master
Igor Zhukov 8 years ago
parent
commit
1d0709bcf6
  1. 2
      app/js/lib/ng_utils.js

2
app/js/lib/ng_utils.js

@ -1240,7 +1240,7 @@ angular.module('izhukov.utils', []) @@ -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…
Cancel
Save