Closed matias-lg closed 7 months ago
The example rule for a negative assertion gives an error when trying it in the playground:
The example rule is:
negPredicate = $[0-9]+ !{ return parseInt(match, 10) < 100 }
pasting it in the playground warns match is not defined instead of parsing.
match is not defined
solution: Change the example for negPredicate = match:$[0-9]+ !{ return parseInt(match, 10) < 100 }
negPredicate = match:$[0-9]+ !{ return parseInt(match, 10) < 100 }
The example rule for a negative assertion gives an error when trying it in the playground:
The example rule is:
negPredicate = $[0-9]+ !{ return parseInt(match, 10) < 100 }
pasting it in the playground warns
match is not defined
instead of parsing.solution: Change the example for
negPredicate = match:$[0-9]+ !{ return parseInt(match, 10) < 100 }