Fix for lint.

pull/6997/head
PM Extra 5 years ago committed by GitHub
parent 46370ade6f
commit 4a253fc1b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ export const dir = (text: string) =>
strings.dasherize(text.replace(/\./g, '/').replace(/\/\//g, '/'));
export const quote = (value: number | string) =>
typeof value === 'string' ? `'${value.replace(/'/g, `\\'`)}'` : value;
typeof value === 'string' ? `'${value.replace(/'/g, '\\\'')}'` : value;
function _(text: string): string {
return text.replace(/\./g, '_');

Loading…
Cancel
Save