empty fields are not populated using regex in massedit

Bug #840517 reported by drMerry on 2011-09-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Charles Haley

Bug Description

When I tried to populate my fields using regexp, I noticed empty fields are not populated

E.g.
Book A:
#contributing_people: "H. G. Wells"
Book B:
#contributing_people: ""

Regexp:
Find: .*
Replace: Herbert George Wells
Result:
Book A:
Herbert George Wells
Book B:

Same for ^.*$
When using ^$ book A and B are both not changed.

Related branches

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Charles Haley (cbhaley) wrote :

I changed regexp replacements on is_multiple columns to use [''] for empty columns ([]). This permits .* to match. I hope it doesn't break other things. I don't think it does

Changed in calibre:
status: Triaged → Fix Committed

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers