Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feat(currencyFilter): trim whitespace around an empty currency symbol #15105

Closed

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Sep 7, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature

What is the current behavior? (You can also link to an open issue here)
See #15018.

What is the new behavior (if this is a feature change)?
Whitespace around the currency symbol is trimmed, when the currency symbol is empty.

Does this PR introduce a breaking change?
Who knows... If someone relied on the whitespave being there, I guess it does 😞

Please check if the PR fulfills these requirements

Other information:
In most locales, this won't make a difference (since they do not have whotespace around their currency symbols). In locales where there is a whitespace separating the currency symbol from the number, it makes sense to also remove such whitespace if the user specified an empty currency symbol (indicating they just want the number).

Fixes #15018
Closes #15085

In most locales, this won't make a difference (since they do not have whotespace around their
currency symbols). In locales where there is a whitespace separating the currency symbol from the
number, it makes sense to also remove such whitespace if the user specified an empty currency symbol
(indicating they just want the number).

Fixes angular#15018
Closes angular#15085
@gkalpak
Copy link
Member Author

gkalpak commented Sep 7, 2016

TODO:
✔️ Decide if we want this change at all.
❌ Decide if this is a breaking change.
❌ Decide if this needs to be documented.

Argh...too many decisions...

@Narretz
Copy link
Contributor

Narretz commented Dec 14, 2017

Just looking through old PRs ... ;) I think we should merge this as is in 1.6.x

@Narretz Narretz modified the milestones: Backlog, 1.6.x Dec 14, 2017
gkalpak added a commit that referenced this pull request Dec 19, 2017
In most locales, this won't make a difference (since they do not have
whitespace around their currency symbols). In locales where there is a
whitespace separating the currency symbol from the number, it makes
sense to also remove such whitespace if the user specified an empty
currency symbol (indicating they just want the number).

Fixes #15018
Closes #15085

Closes #15105
@gkalpak gkalpak closed this in 62743a5 Dec 19, 2017
@gkalpak gkalpak deleted the feat-currency-trim-whitespace branch February 7, 2018 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trailing space issue in Angular Locale
4 participants