-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from SRGSSR/develop
Release deeplink update (new topic list workflow and event list removal)
- Loading branch information
Showing
11 changed files
with
172 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 0 additions & 109 deletions
109
src/main/java/ch/srgssr/playfff/model/playportal/PlayTopic.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package ch.srgssr.playfff.utils; | ||
|
||
/** | ||
* Copyright (c) SRG SSR. All rights reserved. | ||
* <p> | ||
* License information is available from the LICENSE file. | ||
*/ | ||
public class Seo { | ||
/* | ||
Convert a string to a seo name | ||
Based on Play SRG web application (from 'to-seo-string.ts') | ||
*/ | ||
public static String nameFromTitle(String title) { | ||
return title | ||
.toLowerCase() | ||
.replace(" - ", "-") | ||
.replace("–", "-") | ||
.replace(".", "-") | ||
|
||
// utf-8 non breaking space | ||
.replace("\\xa0", "-") | ||
|
||
// whitespace characters | ||
.replace("\\s", "-") | ||
.replace(" ", "-") | ||
|
||
// tabs and new line | ||
.replace("\t", "-") | ||
.replace("\n", "-") | ||
|
||
// umlauts", accents and diacritics | ||
.replace("ä", "ae") | ||
.replace("ö", "oe") | ||
.replace("ü", "ue") | ||
.replaceAll("[éèê]", "e") | ||
.replaceAll("[áàâ]", "a") | ||
.replaceAll("[úùû]", "u") | ||
.replaceAll("[óòô]", "o") | ||
.replace("ç", "c") | ||
.replace("æ", "ae") | ||
.replace("œ", "oe") | ||
|
||
// special characters (except "-"", "_") | ||
.replaceAll("[^a-zA-Z0-9\\-_]*", ""); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.