Skip to content

Commit

Permalink
Simplify the “lang” regex
Browse files Browse the repository at this point in the history
Remove an useless (?!\*) part from the lang regex.
  • Loading branch information
Valtteri Laitinen committed Jan 16, 2016
1 parent cf7291e commit 417f54a
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 417f54a

Please sign in to comment.