Skip to content

Refactor regex in index.ts for improved readability #94

@callmegautam

Description

@callmegautam

The main regex in src/index.ts is functionally correct but difficult to read and understand. This affects maintainability and onboarding of new contributors.

Suggested Fix

Extract named parts (e.g., word matcher, boundary matcher) into constants and add inline comments for each group.

Goal

  • Preserve exact functionality
  • Improve readability

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions