Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Zizzamia committed Mar 10, 2015
2 parents b5bcc40 + 921e7d2 commit 892c04d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ angular.module('myApp', ['ngTasty']);


## Development
For running the dev enviroment you just need install
For running the dev environment you just need install
all the dependencies by `npm`, the [node package manager][npm-site].

```
npm install -g gulp
npm install
```

Run dev enviroment, it's a watch script with several task running
Run dev environment, it's a watch script with several task running
like jshint, html2js, build and unit test on the js build files.
```
gulp build
Expand All @@ -43,7 +44,7 @@ gulp watch

#### Run demo app

We have preconfigured the demo with a simple development web server.
We have pre-configured the demo with a simple development web server.
The simplest way to start this server is:

```
Expand Down
12 changes: 1 addition & 11 deletions src/filter/slugify.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,9 @@ angular.module('ngTasty.filter.slugify', [])
return '' + object;
};

var defaultToWhiteSpace = function (characters) {
if (characters == null) {
return '\\s';
} else if (characters.source) {
return characters.source;
} else {
return '[' + characters.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + ']';
}
};

var from = 'ąàáäâãåæăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșšŝťțŭùúüűûñÿýçżźž',
to = 'aaaaaaaaaccceeeeeghiiiijllnnoooooooossssttuuuuuunyyczzz',
regex = new RegExp(defaultToWhiteSpace(from), 'g');
regex = new RegExp('[' + from + ']', 'g');

return function (str) {
str = makeString(str)
Expand Down

0 comments on commit 892c04d

Please sign in to comment.