Skip to content

Scriptlet arguments starting with a quote are treated as invalid #398

Open

Description

@antonok-edm

The following rule is treated as invalid by adblock-rust because it looks like the first argument is quoted, but there is no matching end quote:

example.com##+js(scriptlet-name, "test"!==undefined, 1)

However, uBO considers it valid and parses the arguments as "test"!==undefined and 1.

Activity

  1. giri256 commented on Jul 24, 2026

    @giri256

    I’m working on a focused parser fix with regression coverage for scriptlet arguments that begin with a quote, including the examples in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions