Commit cd8921a8 authored by Sean Hammond's avatar Sean Hammond

Clarify an if statement

parent 83911254
......@@ -20,7 +20,7 @@ function extractDocumentMetadata(model) {
var i;
for (i = 0; i < model.document.link.length; i++) {
var link = model.document.link[i];
if (!(link.href.indexOf('urn'))) {
if (link.href.indexOf('urn') === 0) {
continue;
}
uri = link.href;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment