10-09-2020 02:20 PM
Hello. This is very strange but we have a pipeline that has pipeline parameters / arguments. 1 for month and the other year:
This works fine when the months is 7 or less (july). once you put the param = 08 for august and year 2020 this strange error occurs. we are using the eval() method and mapping eval(_month) to month variable and eval(_year) to year variable. this makes absolutely no sense!
Using 07 2020 there are no errors or any months prior to it:
What gives?
10-09-2020 03:31 PM
a number prefixed with 0 that is not a decimal(0.0004) is using the octal numbering system, which is a base-8 numbering system in which there are only digits 0-7. An Integer must lead with non 0 represented by this regex:
0 | [1-9][0-9]*
whereas octal is: 0 [0-7]+
10-09-2020 03:40 PM
can you use
parseInt(_month)
instead ?