summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-30 17:17:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-30 17:17:57 -0700
commitb1cec69c840b12bb6351a40b9a97ebac029b1b6e (patch)
treec82fa89001896a27a5e008f57893cb4ff4414e75 /lib
parent69037516509239cc9f700265b1579ccd92eafead (diff)
downloadpsych-b1cec69c840b12bb6351a40b9a97ebac029b1b6e.zip
symbols must be longer
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/scalar_scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/scalar_scanner.rb b/lib/psych/scalar_scanner.rb
index 71c75e3..be1e7b6 100644
--- a/lib/psych/scalar_scanner.rb
+++ b/lib/psych/scalar_scanner.rb
@@ -24,7 +24,7 @@ module Psych
[:BOOLEAN, true]
when /^(n|no|false|off)$/i
[:BOOLEAN, false]
- when /^:/i
+ when /^:.+/i
[:SYMBOL, @string.sub(/^:/, '').to_sym]
when /^[-+]?[1-9][0-9_]*(:[0-5]?[0-9])+$/
i = 0