Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed id node regexp

  • Loading branch information...
commit 1a3809d04700547ee071285c9bb14b4f98982c4f 1 parent 4664401
Alexey Zapparov ixti authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  examples/config.yml
  2. +1 −1  lib/yaml.js
2  examples/config.yml
View
@@ -5,4 +5,4 @@
timeout: 15
servers: 2
require: []
-
+ dbg-mode: false
2  lib/yaml.js
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 -]*)/]
]
/**
Please sign in to comment.
Something went wrong with that request. Please try again.