Skip to content

Commit

Permalink
fix: ignore eslint errors for \S
Browse files Browse the repository at this point in the history
  • Loading branch information
nishantwrp committed Aug 24, 2021
1 parent cb3d677 commit dd98f44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export class Parser {

const wrapInQuotes = (definitionsBlock: string, properties: string[]) => {
for (const prop of properties) {
// eslint-disable-next-line no-useless-escape
const pattern = new RegExp(`^[^\S\n]*${prop}[^\S\n]*:.*`, "gm");
const matches = definitionsBlock.match(pattern);
if (!matches) {
Expand Down

0 comments on commit dd98f44

Please sign in to comment.