Made changes due to Jace's github comments
Added prefix guarding to bypass an annoying bug for now

changed regex to be a split for links.
Modified tests to show that the core issue to importing when deleting
and re-creating an issue is through the call to document.items.