Skip to content
Snippets Groups Projects
Commit c2882631 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

change of approach : testing without breaking

parent c3018119
Branches master
No related tags found
1 merge request!4Url/year/title
...@@ -8,7 +8,7 @@ const date = new Date() ...@@ -8,7 +8,7 @@ const date = new Date()
const beginYear = 1900 + (date.getMonth() < 7 ? date.getYear()-1 : date.getYear()); const beginYear = 1900 + (date.getMonth() < 7 ? date.getYear()-1 : date.getYear());
function formToucanUrlId(toucan){ function formToucanUrlId(toucan){
return toucan.title.toLowerCase().replace(/\s/g, "")+"-"+toucan.date.getYear(); return toucan.title.toLowerCase().replace(/\s/g, "")+"-"+toucan.date;
} }
function AllToucan(props){ function AllToucan(props){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment