ignore some lint warnings
This commit is contained in:
parent
fddf1c40dc
commit
80e9f129d8
6 changed files with 15 additions and 5 deletions
|
@ -4,6 +4,10 @@ const fs = require('fs');
|
|||
const path = require('path');
|
||||
const { negotiateLanguages } = require('fluent-langneg');
|
||||
const langData = require('cldr-core/supplemental/likelySubtags.json');
|
||||
|
||||
// We return early in the middleware if the lang header is long.
|
||||
// If that ever changes we should re-evaluate this regex.
|
||||
// eslint-disable-next-line security/detect-unsafe-regex
|
||||
const acceptLanguages = /(([a-zA-Z]+(-[a-zA-Z0-9]+){0,2})|\*)(;q=[0-1](\.[0-9]+)?)?/g;
|
||||
|
||||
function allLangs() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue