is_valid_timezone?("<a string with two sets characters wrapped in angle brackets><will return true>") returns true

Open
#790 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
elixir
Domain
backend

Research direction

Start at the Timex.is_valid_timezone? entry point and reproduce the three inputs shown in the issue. Trace the validation of angle-bracketed values and add or update coverage for the examples; done means the malformed input with two non-empty sets returns false while the listed invalid cases remain false.

Written by the indexing model from the issue text.

Description

Any input wrapped in <...>...<...> with three or more non-> bytes between each pair will pass Timex.is_valid_timezone?.

  • is_valid_timezone?("<><>") returns false
  • is_valid_timezone?("<abc><>") returns false
  • is_valid_timezone?("<abc><def>") returns true
Dominant language
Elixir
Stars
1.8k
Forks
408
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bitwalker/timex

All issues in bitwalker/timex

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.