Account for spaces between opening block and js
This commit is contained in:
@ -12,7 +12,7 @@ const prettier = require('prettier');
|
|||||||
const SNIPPETS_PATH = './snippets';
|
const SNIPPETS_PATH = './snippets';
|
||||||
const TEMP_PATH = './temp';
|
const TEMP_PATH = './temp';
|
||||||
|
|
||||||
const codeRE = /```js([\s\S]*?)```/g;
|
const codeRE = /```\s*js([\s\S]*?)```/g;
|
||||||
|
|
||||||
console.time('lint');
|
console.time('lint');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user