Skip to content

Commit

Permalink
style(): improve comments and variable names
Browse files Browse the repository at this point in the history
Fix bad variable names.

 References angular#9869
  • Loading branch information
natete committed Oct 23, 2016
1 parent 8aba117 commit 9d78e58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/services/theming/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -1011,15 +1011,15 @@ function generateAllThemes($injector, $mdTheming) {
for (var i = 0; i < themeCss.length; i++) {
var character = themeCss.charAt(i);

// Check for quoted content
// Check for content in quotes
if (character === '\'' || character === '\"') {
var pattern = '\\' + character + '.*' + '\\' + character;
var regex = new RegExp(pattern);
// Get quoted content
var quotedText = regex.exec(themeCss.slice(i)).toString();
currentRule += quotedText;
// Get content in quotes
var textInQuotes = regex.exec(themeCss.slice(i)).toString();
currentRule += textInQuotes;
// Jump to the closing quote char
i += quotedText.length;
i += textInQuotes.length;
} else {
currentRule += character;

Expand Down

0 comments on commit 9d78e58

Please sign in to comment.