Project

General

Profile

Actions

Feature #4305

closed

Filtering language possibility to test for string length

Added by Pavel Kácha about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Core
Target version:
Start date:
09/14/2018
Due date:
% Done:

100%

Estimated time:
To be discussed:

Description

size(ID) does not return correct values for scalars, which may be by design (array lengths).

"rule": "size(ID) < 8" in Inspector matches even for "ID": "f6b06cc8-15ee-4232-be6b-ac8857f23b26".

Suspect is the usage of method pynspect.jpath.jpath_values(), which always returns array, so size may work on array, not string.

One possibility is to make size work on strings, which however may be incompatible or special cased in jpath_values usage.

Another possibility is specific function for strings (like strlen or so).

Actions

Also available in: Atom PDF