slug update

This commit is contained in:
aisensiy
2017-08-25 11:19:26 +08:00
parent 6e473f9838
commit aa4f40ba74
2 changed files with 40 additions and 1 deletions

View File

@@ -57,6 +57,6 @@ public class Article {
}
private String toSlug(String title) {
return title.toLowerCase().replace(' ', '-');
return title.toLowerCase().replaceAll("[\\&|[\\uFE30-\\uFFA0]|\\|\\”|\\s\\?\\,\\.]+", "-");
}
}