Skip to content

Commit

Permalink
Merge pull request #854 from valtlait/patch-1
Browse files Browse the repository at this point in the history
Simplify the “lang” regex
  • Loading branch information
zeitgeist87 committed Jan 16, 2016
2 parents cf7291e + 417f54a commit 3ebcb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/prism-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var _self = (typeof window !== 'undefined')
var Prism = (function(){

// Private helper vars
var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i;
var lang = /\blang(?:uage)?-(\w+)\b/i;

var _ = _self.Prism = {
util: {
Expand Down

0 comments on commit 3ebcb66

Please sign in to comment.