Skip to content

Commit

Permalink
Merge pull request #957 from andeersg/lowercase-languages
Browse files Browse the repository at this point in the history
Use toLowerCase on language names
  • Loading branch information
Golmote committed May 17, 2016
2 parents e45fd2e + acd9508 commit abee2b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ var _ = _self.Prism = {
}

if (parent) {
language = (parent.className.match(lang) || [,''])[1];
language = (parent.className.match(lang) || [,''])[1].toLowerCase();
grammar = _.languages[language];
}

Expand Down
2 changes: 1 addition & 1 deletion components/prism-core.min.js

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

2 changes: 1 addition & 1 deletion prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ var _ = _self.Prism = {
}

if (parent) {
language = (parent.className.match(lang) || [,''])[1];
language = (parent.className.match(lang) || [,''])[1].toLowerCase();
grammar = _.languages[language];
}

Expand Down

0 comments on commit abee2b7

Please sign in to comment.