I'd prefer something like this:

    ncc = @resources[localUri] if localUri.match /^ncc\.x?html?$/i