bug fix: pub should now be matched in the regex