INNER CODE UNIT · JavaScript

genericWebsite

Flagsmith/flagsmith · frontend/api/index.js:235

const genericWebsite = (url) => {
  if (!url) return true
  if (
    url.includes('hotmail.') ||
    url.includes('gmail.') ||
    url.includes('icloud.') ||
    url.includes('flagsmith.com')
  ) {
    return true
  }
  return false
}
app.post('/api/event', (req, res) => {
  try {
    const body = req.body
    const channel = body.tag
      ? `infra_${body.tag.replace(/ /g, '').toLowerCase()}`
      : process.env.EVENTS_SLACK_CHANNEL

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…