Permalink
Browse files

Fixed id node regexp

  • Loading branch information...
1 parent 4664401 commit 1a3809d04700547ee071285c9bb14b4f98982c4f @ixti ixti committed Aug 2, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/config.yml
  2. +1 −1 lib/yaml.js
View
@@ -5,4 +5,4 @@
timeout: 15
servers: 2
require: []
-
+ dbg-mode: false
View
@@ -53,7 +53,7 @@ var tokens = [
['-', /^\-/],
[':', /^[:]/],
['string', /^(?![^:\n\s]*:[^\/]{2})(([^:,\]\}\n\s]|(?!\n)\s(?!\s*?\n)|:\/\/|,(?=[^\n]*\s*[^\]\}\s\n]\s*\n)|[\]\}](?=[^\n]*\s*[^\]\}\s\n]\s*\n))*)(?=[,:\]\}\s\n]|$)/],
- ['id', /^([\w ]+)/]
+ ['id', /^([\w][\w -]*)/]
]
/**

0 comments on commit 1a3809d

Please sign in to comment.