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

fix for ngList: separator does not work - comma is used all the time #4008

Closed
wants to merge 1 commit into from

Conversation

ptsurko
Copy link

@ptsurko ptsurko commented Sep 14, 2013

ng-list="" does not work.
comma is hard-coded in formatters and is used all the time.

@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@petebacondarwin
Copy link
Contributor

Related to #2561

@petebacondarwin
Copy link
Contributor

In particular this comment from @IgorMinar:

1/ simple

drop regexp support
use the current separator for splitting but treat all separator whitespace as insignificant
use the current separator for joining but treat all separator whitespace as significant

@petebacondarwin
Copy link
Contributor

@ptsurko - Perhaps you can update this PR to deal with those aspects too? Also the PR will need unit tests.

@purcell
Copy link
Contributor

purcell commented Oct 9, 2013

@ptsurko: please see #4344

purcell added a commit to purcell/angular.js that referenced this pull request Oct 9, 2013
Remove support for regexp separators, and correctly use custom separator
when formatting values into the control.

See angular#4008 and angular#2561.
@IgorMinar
Copy link
Contributor

I'm sorry, but I wasn't able to verify your CLA signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let me know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@purcell
Copy link
Contributor

purcell commented Dec 7, 2013

Argh, I've signed it twice already, and definitely with the correct email address! But I'll give it another go now. :-)

@purcell
Copy link
Contributor

purcell commented Dec 7, 2013

Okay, done. Steve Purcell, with the email I use for all my commits.

@purcell
Copy link
Contributor

purcell commented Dec 7, 2013

(Did it via the click-through form for individuals.)

@purcell
Copy link
Contributor

purcell commented Dec 7, 2013

Did the CLA signature show up this time?

@purcell
Copy link
Contributor

purcell commented Dec 7, 2013

@IgorMinar Sorry, wrongly assumed these CLA comments were on #4344, which I submitted a couple of months ago as a more complete version of this PR, incorporating your feedback from #2561 and that of @petebacondarwin in #4008.

@IgorMinar
Copy link
Contributor

thanks @purcell I see that this PR is subset of the pending PR #4344, so I'm going to close it.

@IgorMinar IgorMinar closed this Jan 13, 2014
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Jul 16, 2014
The separator string used to split the view value into a list for the model
value is now used to join the list items back together again for the view value.

BREAKING CHANGE:

The `ngList` directive no longer supports splitting the view value
via a regular expression. We need to be able to re-join list items back
together and doing this when you can split with regular expressions can
lead to inconsistent behaviour and would be much more complex to support.

If your application relies upon ngList splitting with a regular expression
then you should either try to convert the separator to a simple string or
you can implement your own version of this directive for you application.

Closes angular#4008
Closes angular#2561
Closes angular#4344
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this pull request Jul 17, 2014
The separator string used to split the view value into a list for the model
value is now used to join the list items back together again for the view value.

BREAKING CHANGE:

The `ngList` directive no longer supports splitting the view value
via a regular expression. We need to be able to re-join list items back
together and doing this when you can split with regular expressions can
lead to inconsistent behaviour and would be much more complex to support.

If your application relies upon ngList splitting with a regular expression
then you should either try to convert the separator to a simple string or
you can implement your own version of this directive for you application.

Closes angular#4008
Closes angular#2561
Closes angular#4344
petebacondarwin pushed a commit that referenced this pull request Jul 17, 2014
The separator string used to split the view value into a list for the model
value is now used to join the list items back together again for the view value.

BREAKING CHANGE:

The `ngList` directive no longer supports splitting the view value
via a regular expression. We need to be able to re-join list items back
together and doing this when you can split with regular expressions can
lead to inconsistent behaviour and would be much more complex to support.

If your application relies upon ngList splitting with a regular expression
then you should either try to convert the separator to a simple string or
you can implement your own version of this directive for you application.

Closes #4008
Closes #2561
Closes #4344
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants