• Jump To … +
    ApiBase.coffee ApiBaseHTTP.coffee ApiV3.coffee BaseModel.coffee Groups.coffee Issues.coffee ProjectDeployKeys.coffee ProjectHooks.coffee ProjectIssues.coffee ProjectMembers.coffee ProjectMergeRequests.coffee ProjectMilestones.coffee ProjectRepository.coffee Projects.coffee Users.coffee Utils.coffee index.coffee
  • Utils.coffee

  • ¶
    class Utils
      @parseProjectId: (projectId) =>
        if typeof projectId is "number"
          return projectId # Do nothing
        else if projectId.indexOf("/") isnt -1
          projectId = encodeURIComponent(projectId)
        else
          projectId = parseInt(projectId)
    
    module.exports = Utils