From 7b90c2ae869e7cf65511e0f85330b78fe055800f Mon Sep 17 00:00:00 2001 From: brunosimon Date: Mon, 24 Oct 2016 19:39:13 +0200 Subject: [PATCH] [fix] Lower case slugs --- site/models/project.class.js | 2 +- site/site.class.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/models/project.class.js b/site/models/project.class.js index 1d87b39..7a7663a 100644 --- a/site/models/project.class.js +++ b/site/models/project.class.js @@ -33,7 +33,7 @@ class Project set_name( _name ) { this.name = _name - this.slug = slug( this.name ) + this.slug = slug( this.name, { lower: true } ) } set_socket( socket ) diff --git a/site/site.class.js b/site/site.class.js index e39277e..1b9a4c7 100644 --- a/site/site.class.js +++ b/site/site.class.js @@ -62,7 +62,7 @@ class Site return // Default project - let project = this.projects.create_project( 'dummy' ) + let project = this.projects.create_project( 'Dummy project' ) // // Same name projects // let project_2 = this.projects.create_project( 'dummy' )