mcantelon/node-deja — pull request #13 by oschrenk (2012-06-27 14:49:40+00:00)
Title: FIX ReferenceError: helpers is not defined. 

I recently added a README.md to my dotfiles. Now I found out i could ignore files with deja by adding a `.dejaignore_local` file to my dotfiles repository. So I did ran `echo README.md > .dejaignore_local`.

After this I run `deja link dotfiles` and get this error message

/usr/local/lib/node_modules/deja/lib/helpers.js:371
line = helpers.trim(line)
^
ReferenceError: helpers is not defined
at Object.readIgnoreListFromFile (/usr/local/lib/node_modules/deja/lib/helpers.js:371:12)
at /usr/local/lib/node_modules/deja/lib/helpers.js:335:34
at Object.oncomplete (path.js:415:19)

OSX 10.7.4
node 0.6.19 / 0.8
deja 0.1.7
npm 1.1.18 / 1.1.32

I don't know exactly when node.js/v8 started supporting ECMAScript 5 #trim(), but node 0.8 does, so I replaced the "old" RegEx version (which wasn't found ) and replaced it with the native call.

PS
Why is the file called `.dejaignore_local` and not just `.dejaignore` which seems to be inline with git and npm?