Skip to content

Cannot parse multi-line pica records with 1.2.0 (MissingIdException) #155

@dmj

Description

@dmj

PicaDecoder in 1.2.0 uses a regular expression to find the record id. The expression is defined as:

"003@ " + 0x1F + "0(.*)?" + 0x1E

By default "." does not match the newline character (cf. http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#DOTALL), thus the regexp fails if a multi-line record like the one in https://gist.github.com/dmj/7116314 is used.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions