Skip to content

Unnecessary safety check. #133

@ldynia

Description

@ldynia

The current code has the following flow. The maximum length of the pattern cannot exceed 100 characters. This is problematic because if I want to match a specific pattern, such as "^https://www.akamai.com/newsroom/press-release/state-of-the-internet-security-retail-attacks-and-api-traffic", the program doesn't allow for that.

// Apply length limits for safety
if (pattern.length > 100) {
  console.warn(
    `Pattern exceeds maximum safe length: ${pattern.substring(0, 50)}...`
  )
  return null
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions