Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ksdev-pl committed Jan 15, 2018
1 parent 77bc191 commit 86f3d14
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ compile 'pl.ksdev:slugify:0.2'

```java
SlugService slugService = new SimpleSlugService();
String result = slugService.slugify("Zażółć gęślą jaźń");
System.out.println(result); // "zazolc-gesla-jazn"
String result = slugService.slugify("Zażółć gęślą jaźń"); // result = "zazolc-gesla-jazn"

SlugService slugService = new SimpleSlugService(5); // Adds a max slug length (default = 200)
String result = slugService.slugify("1234567890");
System.out.println(result); // "12345"
SlugService slugService = new SimpleSlugService(5); // adds a max slug length (default = 200)
String result = slugService.slugify("1234567890"); // result = "12345"
```

## License
Expand Down

0 comments on commit 86f3d14

Please sign in to comment.