Skip to content

Commit

Permalink
Fix typos in constant names
Browse files Browse the repository at this point in the history
  • Loading branch information
Smith, David (HRSA) [C] authored and davidsmith2 committed Jun 8, 2022
1 parent 97325a6 commit b6f83fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/parser/parser.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const VARIABLE_PATERN = '(?!\\d)[\\w_-][\\w\\d_-]*';
const VALUE_PATERN = '[^;]+|"(?:[^"]+|(?:\\\\"|[^"])*)"';
const VARIABLE_PATTERN = '(?!\\d)[\\w_-][\\w\\d_-]*';
const VALUE_PATTERN = '[^;]+|"(?:[^"]+|(?:\\\\"|[^"])*)"';
const DECLARATION_PATTERN =
`\\$['"]?(${VARIABLE_PATERN})['"]?\\s*:\\s*(${VALUE_PATERN})(?:\\s*!(global|default)\\s*;|\\s*;(?![^\\{]*\\}))`;
`\\$['"]?(${VARIABLE_PATTERN})['"]?\\s*:\\s*(${VALUE_PATTERN})(?:\\s*!(global|default)\\s*;|\\s*;(?![^\\{]*\\}))`;

const MAP_DECLARATIOM_REGEX = /['"]?((?!\d)[\w_-][\w\d_-]*)['"]?\s*:\s*([a-z\-]+\([^\)]+\)|[^\)\(,\/]+|\([^\)]+\))/gi;
const MAP_DECLARATION_REGEX = /['"]?((?!\d)[\w_-][\w\d_-]*)['"]?\s*:\s*([a-z\-]+\([^\)]+\)|[^\)\(,\/]+|\([^\)]+\))/gi;

const QUOTES_PATTERN = /^(['"]).*\1$/;
const QUOTES_REPLACE = /^(['"])|(['"])$/g;
Expand Down Expand Up @@ -98,7 +98,7 @@ export class Parser {
}

private extractMapDeclarations(content: string): [any] {
const matches = content.match(new RegExp(MAP_DECLARATIOM_REGEX, 'g'));
const matches = content.match(new RegExp(MAP_DECLARATION_REGEX, 'g'));

if (!matches) {
return [] as any;
Expand Down

0 comments on commit b6f83fd

Please sign in to comment.