js-to-json-logic icon indicating copy to clipboard operation
js-to-json-logic copied to clipboard

'substr' not detected

Open vaasav-kumar opened this issue 2 years ago • 1 comments

getting error Unexpected token: 'identifier' for the line transformJS('attibutes["time"] substr "234"')

vaasav-kumar avatar Oct 20 '22 11:10 vaasav-kumar

There are syntax errors. substr is a callable expression. It should be used as substr("234") instead of substr "234". And there are two expressions attibutes["time"] substr("234") used with space as a separator which is not a valid js expression

akilansengottaiyan avatar Jan 24 '24 11:01 akilansengottaiyan