Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Commit [33d96c] Maximize Restore History

RT#88682: make delete_subfield() accept regexp for specifying subfields to delete

The following contruct can now be used:

# delete any subfields whose labels ore neither
# lowercase letters nor digits
$field->delete_subfield(code => qr/[^a-z0-9]/);

Based on a patch by Jason Stephenson <jstephenson@mvlc.org> with a test
case written by myself.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Galen Charlton Galen Charlton 2013-10-22

changed marc-record/lib/MARC/Field.pm
changed marc-record/t/delete-subfield.t
marc-record/lib/MARC/Field.pm Diff Switch to side-by-side view
marc-record/t/delete-subfield.t Diff Switch to side-by-side view