lib/relaton/db.rb in relaton-1.0.1 vs lib/relaton/db.rb in relaton-1.0.2

- old
+ new

@@ -121,10 +121,10 @@ # @param code [String] # @param stdClass [Symbol] # @return [Array] def strip_id_wrapper(code, stdclass) prefix = @registry.processors[stdclass].prefix - code = code.sub(/^#{prefix}\((.+)\)$/, "\\1") + code = code.sub(/\u2013/, "-").sub(/^#{prefix}\((.+)\)$/, "\\1") [prefix, code] end # @param entry [String] XML string # @param stdclass [Symbol]