Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve date parsing in the js sandbox #18234

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

calixteman
Copy link
Contributor

@calixteman calixteman commented Jun 11, 2024

If for example dd:mm is failing we just try with d:m which is equivalent to the regex /d{1,2}:m{1,2}/.
This way it allows the user to forget the 0 for the first days/months.

@calixteman
Copy link
Contributor Author

/botio unittest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/6bf58f4bc1bebc5/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/597197ad37d2556/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/6bf58f4bc1bebc5/output.txt

Total script time: 2.54 mins

  • Unit Tests: FAILED

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/597197ad37d2556/output.txt

Total script time: 11.46 mins

  • Unit Tests: FAILED

@calixteman
Copy link
Contributor Author

/botio unittest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/8b3577c851220c9/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/84fd5daec47de22/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/8b3577c851220c9/output.txt

Total script time: 2.48 mins

  • Unit Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/84fd5daec47de22/output.txt

Total script time: 10.74 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

timvandermeij commented Jun 13, 2024

Out of curiosity, does this fix a particular issue or bug (and if so, could you link it in the commit message), or is it just something you happen to notice/stumble upon in the specification (and if so, could you point to that since it helps me to review this patch)?

@calixteman
Copy link
Contributor Author

Out of curiosity, does this fix a particular issue or bug (and if so, could you link it in the commit message), or is it just something you happen to notice/stumble upon in the specification (and if so, could you point to that since it helps me to review this patch)?

Yep, after this comment:
#15490 (comment)
I tested in Acrobat and they're smarter than us so this patch fix the issue (even if don't respect the format).

If for example dd:mm is failing we just try with d:m which is equivalent
to the regex /d{1,2}:m{1,2}/. This way it allows the user to forget the
0 for the first days/months.
@calixteman
Copy link
Contributor Author

/botio unittest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/ef0a2664e2ff376/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/fe8f9cb5a95c6a1/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/ef0a2664e2ff376/output.txt

Total script time: 2.52 mins

  • Unit Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/fe8f9cb5a95c6a1/output.txt

Total script time: 7.78 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit aa68b8b into mozilla:master Jun 14, 2024
9 checks passed
@timvandermeij
Copy link
Contributor

Thank you for improving this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants