antonioribeiro / antonioribeiro/version
Add formatting options to format configuration
- Dominant language
- PHP
- Stars
- 592
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
It seems that only raw values from the current version configuration sets can be output using the format string. When outputting times with single digit minutes this leads to timestamps that look like: "8:8" (8 minutes after eight).
It would be great if there were some options for simple variable transformations (like padding a variable with zeroes in this case). e.g.
{$timestamp.hour}:{$timestamp.minute|pl:0:2}
for padding from left to size 2 with zeroes etc.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the format-string handling for current-version configuration and review how variables are rendered. Reproduce the single-digit-minute example, then define and test the requested padding option so a format such as {$timestamp.minute|pl:0:2} produces a two-character value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100