blakmatrix / node-migrator-bot

Migrate your old Node.js Repos
MIT License
31 stars 3 forks source link

Ensure non-word char before and ( after. Support space around dot. #26

Closed Qard closed 12 years ago

Qard commented 12 years ago

Fix for #25.

Ensure non-word character before and parenthesis after replacement. Also, support spaces/tabs/linebreaks around dot separator.

blakmatrix commented 12 years ago

this unfortunately grabs too much and to little, , it'll grab non word characters like _- and even newlines, also by require the left parentheses this would fail on parts where the code is seperated out from the function call ie ( path.exists | foo )()

Qard commented 12 years ago

That better?