The first (.*?\/) of the regex check for anyhing before the file, and then anything with an underscore and non-whitespace ([_]\w*) is included in the result.
(.*?\/)?[_]\w*)
This was required because processors like sass-brunch were failing on compilations.
The first
(.*?\/)
of the regex check for anyhing before the file, and then anything with an underscore and non-whitespace ([_]\w*
) is included in the result.This was required because processors like sass-brunch were failing on compilations.