Skip to content

Fix 'trusted-set-constant' — determine string values more precisely #499

@maximtop

Description

@maximtop

If you add the following rule:

example.org#%#//scriptlet('trusted-set-constant', 'test', 'no')

you'll encounter the following error:

trusted-set-constant: TypeError: 'no' value type can't be inferred: SyntaxError: Unexpected token 'o', "no" is not valid JSON

This error forces you to wrap 'no' in additional quotes to make it valid.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions