Moved regex to global scope to prevent re-evaluation on subsequent call, modified test to ensure that we are testing solely the data URI functionality and that the helper isn't relying on other parts of the UGCPolicy.