Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird formatting with arrow functions #12

Closed
vicb opened this issue May 27, 2015 · 2 comments
Closed

Weird formatting with arrow functions #12

vicb opened this issue May 27, 2015 · 2 comments

Comments

@vicb
Copy link
Contributor

vicb commented May 27, 2015

https://github.com/angular/angular/blob/8609543ad0fb2820d5b8ca77e03af65973fd0f6c/modules/angular2/test/facade/lang_spec.ts#L13

  describe('RegExp', () => {it('should expose the index for each match', () => {
                       var re = RegExpWrapper.create('(!)');
                       var matcher = RegExpWrapper.matcher(re, '0!23!567!!');
                       var indexes = [];
                       var m;

                       while (isPresent(m = RegExpMatcherWrapper.next(matcher))) {
                         ListWrapper.push(indexes, m.index);
                         expect(m[0]).toEqual('!');
                         expect(m[1]).toEqual('!');
                         expect(m.length).toBe(2);
                       }

                       expect(indexes).toEqual([1, 4, 8, 9]);
                     })});
@mprobst
Copy link
Contributor

mprobst commented Jun 2, 2015

You're missing a semicolon at the very end, should be }) ; });. If you insert that, the formatting gets fixed.

@mprobst mprobst closed this as completed Jun 2, 2015
@vicb
Copy link
Contributor Author

vicb commented Jun 2, 2015

👍 sorry for the noise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants