     .catch (err) ->
       console.trace err.stack
       alert "#{err}"
+
+
+  checkNameEditorView: (editorView)->
+    editorView.originalText = ''
+    editorView.hiddenInput.on 'focusout', (e) =>
+      @checkName editorView
+
+
+  checkName: (editorView)->
+    str = editorView.getText()
+    regEx = /[\`\~\!\@\#\$\%\^\&\*\(\)\+\=\|\{\}\'\:\;\,\\\[\]\<\>\/\?\~\！\@\#\￥\%\…\…\&\*\（\）\—\—\+\|\{\}\【\】\‘\；\：\”\“\’\。\，\、\？]/g
+    strcheck = str.replace(/[^\x00-\xff]/g,"-")
+    strcheck = strcheck.replace(regEx,"-")
+    strcheck = strcheck.replace(/-+/g, '-')
+
+    editorView.originalText = strcheck
+    @warnPackageTextLabel.html("Will be created as #{strcheck}")
+
+    if strcheck is str
+      @warnPackageText.hide()
+    else
+      @warnPackageText.show()
+  
+    
+    

        # console.log packageHave
        options =
          repo: @selectGit
          packageName: @packageName.getText()
          describe: @describe.getText()

        unless packageHave


    @selectPrivateGit.change =>
      @userAccountAttached()

    @checkNameEditorView @packageName
    @warnPackageText.hide()
    
  attached: ->
    @privateSelect.hide()
