Fixed Usage of RegExp Objects
RegExp Objects, that is Regular Expressions created with /.../ were used wrongly throughout the code, as first remarked by boog. They cannot be matched on a string just like: /.../(string), but need to be called upon with either test or exec, cf. here: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp.
I also commented out require.paths which is deprecated in node 0.6.8 and thus does not work. You need to add the requisite paths to your env under NODE_PATH, like boog had also remarked in #68.
With these out of the way, and recompiling TermKit for 10.7 it actually worked for me.
Seems to fix issue #62 for me as well.
Nice work Doc! To get this running I needed to set the the node path as mentionen by boog:
export NODE_PATH=`pwd`/Shared/:`pwd`/Node/:`pwd`/Node/shell/:`pwd`/Node/view/
Great! You can also fix the path issues by replacing require's with relative paths. I liked the old trickery with the require.paths array but it seems its no longer supported by node.