Regexp for document-details URLs should not be global. Fixes issue where not all URLs were being matched.