Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow format strings in ThisAssembly.Strings - #313

#313
Merged
kzu merged 1 commit into
maindevlooped/ThisAssembly:mainfrom
formatdevlooped/ThisAssembly:formatCopy head branch name to clipboard
Jun 9, 2024
Merged

Allow format strings in ThisAssembly.Strings#313
kzu merged 1 commit into
maindevlooped/ThisAssembly:mainfrom
formatdevlooped/ThisAssembly:formatCopy head branch name to clipboard

Conversation

@kzu

@kzu kzu commented Jun 9, 2024

Copy link
Copy Markdown
Member

The following are now valid and produce the expected results, just as an equivalent interpolated string would:

  • expires on {date:yyyy-MM-dd}
  • expires on year {date:yyyy} (wait until {date:MM}
  • expires on {0:yyyy-MM}

Note how the same argument name can be used multiple times with different output formatting for increased flexibility and arg reuse.

Fixes #299

The following are now valid and produce the expected results, just as an equivalent interpolated string would:

- `expires on {date:yyyy-MM-dd}`
- `expires on year {date:yyyy} (wait until {date:MM}`
- `expires on {0:yyyy-MM}`

Note how the same argument name can be used multiple times with different output formatting for increased flexibility and arg reuse.

Fixes #299
@kzu kzu added the enhancement New feature or request label Jun 9, 2024
@kzu
kzu merged commit 16098d8 into main Jun 9, 2024
@kzu
kzu deleted the format branch June 9, 2024 06:38
@devlooped devlooped locked and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow format strings in ThisAssembly.Strings

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.