Skip to content

Commit fdec037

Browse files
committed
fix(asciidoc) fix poly backtracking issue
1 parent 02ca487 commit fdec037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/languages/asciidoc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default function(hljs) {
172172
},
173173
// images and links
174174
{
175-
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]',
175+
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]',
176176
returnBegin: true,
177177
contains: [
178178
{

0 commit comments

Comments
 (0)