Skip to content

Commit

Permalink
fix(asciidoc) fix poly backtracking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 3, 2020
1 parent 02ca487 commit fdec037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/asciidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default function(hljs) {
},
// images and links
{
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]',
begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]',
returnBegin: true,
contains: [
{
Expand Down

0 comments on commit fdec037

Please sign in to comment.