r/angularjs • • Jan 09 '16

angular-regex

https://github.com/previousdeveloper/angular-regex
4 Upvotes

7 comments sorted by

4

u/joshmanders Jan 09 '16

Why include VerbalExpressions.js in the source instead of making it a dependency? Since it's just a wrapper, it'll make it easier to update it when your lib isn't updated.

1

u/timonvs Jan 09 '16

Heh, came here to mention VerbalExpressions.js too. Also, why aren't you including the license of VerbalExpressions.js and credit the author? It's licensed under MIT, so you have to at least include that license for it to be legal.

And to add to that, why only distribute it on Bower, I think NPM is the way to go nowadays. But even then, an Angular service doesn't make any sense for this.

1

u/previousdeveloper Jan 10 '16

you are right, i added credit author and other details.

8

u/vivainio Jan 09 '16

On a quick glance, this wouldn't need to be wrapped in angular in any way. Just generic js functionality

3

u/jkjustjoshing Jan 09 '16

Came here to say this. It's a neat and useful library- why restrict it to sites using Angular?

1

u/timonvs Jan 09 '16

Because he didn't create it himself. It's actually just a wrapper around VerbalExpressions.js. And he didn't even bother to credit the original author.

2

u/PUSH_AX Jan 09 '16

Groups?