@@ -1098,18 +1098,18 @@ We hope you’ll enjoy using Planify!""");
1098
1098
var text = escape_text (_text);
1099
1099
1100
1100
try {
1101
- Regex mailto_regex = / (? P<mailto> [a- zA- Z0 - 9 \. _\% \+ \- ]+ @[a- zA- Z0 - 9 \- \. ]+ \. [a- zA- Z ]+ (\S * ))/ ;
1102
- Regex url_regex = / (? P<url> (http|https)\: \/ \/ [a- zA- Z0 - 9 \- \. ]+ \. [a- zA- Z ]+ (\/ \S * ))/ ;
1101
+ Regex mailto_regex = / (? P<mailto> [a- zA- Z0 - 9 \. _\% \+ \- ]+ @[a- zA- Z0 - 9 \- \. ]+ \. [a- zA- Z ]+ (\S * ))/ ; // vala-lint=space-before-paren
1102
+ Regex url_regex = / (? P<url> (http|https)\: \/ \/ [a- zA- Z0 - 9 \- \. ]+ \. [a- zA- Z ]+ (\/ \S * ))/ ; // vala-lint=space-before-paren
1103
1103
Regex url_markdown = new Regex (" \\ [([^\\ ]]+)\\ ]\\ (([^\\ )]+)\\ )" );
1104
1104
1105
- Regex italic_bold_regex = / \* \* \* (. * ? )\* \* \*/ ;
1106
- Regex bold_regex = / \* \* (. * ? )\* \*/ ;
1107
- Regex italic_regex = / \* (. * ? )\*/ ;
1108
- Regex underline_regex = / _(. * ? )_/ ;
1105
+ Regex italic_bold_regex = / \* \* \* (. * ? )\* \* \*/ ; // vala-lint=space-before-paren
1106
+ Regex bold_regex = / \* \* (. * ? )\* \*/ ; // vala-lint=space-before-paren
1107
+ Regex italic_regex = / \* (. * ? )\*/ ; // vala-lint=space-before-paren
1108
+ Regex underline_regex = / _(. * ? )_/ ; // vala-lint=space-before-paren
1109
1109
1110
- Regex italic_bold_underline_regex = / \* \* \* _([^* ]+ )_\* \* \*/ ;
1111
- Regex bold_underline_regex = / \* \* _([^* ]+ )_\* \*/ ;
1112
- Regex italic_underline_regex = / \* _(. * ? )_\*/ ;
1110
+ Regex italic_bold_underline_regex = / \* \* \* _([^* ]+ )_\* \* \*/ ; // vala-lint=space-before-paren
1111
+ Regex bold_underline_regex = / \* \* _([^* ]+ )_\* \*/ ; // vala-lint=space-before-paren
1112
+ Regex italic_underline_regex = / \* _(. * ? )_\*/ ; // vala-lint=space-before-paren
1113
1113
1114
1114
MatchInfo info;
1115
1115
@@ -1132,6 +1132,7 @@ We hope you’ll enjoy using Planify!""");
1132
1132
if (url_regex. match (text, 0 , out info)) {
1133
1133
do {
1134
1134
var url = info. fetch_named (" url" );
1135
+
1135
1136
if (! url_exists (url, markdown_urls)) {
1136
1137
urls. append (url);
1137
1138
}
@@ -1192,6 +1193,7 @@ We hope you’ll enjoy using Planify!""");
1192
1193
foreach (RegexMarkdown m in markdown_urls) {
1193
1194
string markdown_text = m. text;
1194
1195
string markdown_link = m. extra;
1196
+
1195
1197
string urlAsLink = @" <a href=\"$markdown_link\" >$markdown_text </a>" ;
1196
1198
converted = converted. replace (m. match, urlAsLink);
1197
1199
}
0 commit comments