chore(): optimize regex for linked scripts