Skip to content

Commit 95218eb

Browse files
Smith, David (HRSA) [C]Smith, David (HRSA) [C]
authored andcommitted
Fix typo in constant name
1 parent 97325a6 commit 95218eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/parser/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const VALUE_PATERN = '[^;]+|"(?:[^"]+|(?:\\\\"|[^"])*)"';
33
const DECLARATION_PATTERN =
44
`\\$['"]?(${VARIABLE_PATERN})['"]?\\s*:\\s*(${VALUE_PATERN})(?:\\s*!(global|default)\\s*;|\\s*;(?![^\\{]*\\}))`;
55

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

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

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

103103
if (!matches) {
104104
return [] as any;

0 commit comments

Comments
 (0)