Permalink
Browse files

Merge branch 'master' of github.com:pascalopitz/nodestalker

  • Loading branch information...
2 parents fcd2223 + 98fae08 commit 485346f462668bd6f74faa9671daaaf4ef735aa1 @pascalopitz committed Sep 25, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/beanstalk_client.js
@@ -7,6 +7,10 @@ var events = require('events'),
// because yaml doesn't like beanstalk
var yaml = new function() {
this.eval = function(str) {
+ if (!str.replace) {
+ return str;
+ }
+
// YAML sucks, reg exp to make it working(ish)
var corrected = str.replace(/\n-\ ([\w\d_-]+)/mig, '\n - \'$1\'') //indent list
.replace(/(\w)\-(\w)/mgi, '$1_$2') // replace minuses in hash names
@@ -433,4 +437,4 @@ var Beanstalk = function(server) {
};
exports.Client = Beanstalk;
-exports.Debug = Debug;
+exports.Debug = Debug;

0 comments on commit 485346f

Please sign in to comment.