Skip to content

Commit

Permalink
Ruby: Fix slash regex performance. Fix #1083
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jan 18, 2017
1 parent 0ca1353 commit a708730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}
},
{
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,
lookbehind: true
}
],
Expand Down
2 changes: 1 addition & 1 deletion components/prism-ruby.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit a708730

@RickyRoller
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick turn around!

Please sign in to comment.