node-globule icon indicating copy to clipboard operation
node-globule copied to clipboard

Fix problem prefixBase option adds prefix to absolute paths incorrectly

Open randing89 opened this issue 11 years ago • 0 comments

When running against the options like

{
  src: ['/absolute/path/to/deep/**/deep*.txt'],
  srcBase: '/absolute/path/to/deep/', 
  prefixBase: true
}

The return paths will be prefixed incorrectly like: /absolute/path/to/deep/absolute/path/to/deep/**/deep*.txt

This pull request is addressed to solve this problem with test case attached

randing89 avatar Nov 11 '14 00:11 randing89