Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2015 at 08:46 UTC
Updated:
24 Aug 2015 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottComment #2
alexpottHere's a patch.
Comment #3
mbayntonApplied/tested/reviewed. Can't you get away with a regex as simple as
'/^\s|\s$/'? Looks like the method is called nearly 200 times in current tests so probably runs pretty frequently, and ditching the capturing subgroups would theoretically perform better. But, that's a total nitpick, we can move on...Comment #4
alexpott@mbaynton you're right.
Comment #5
alexpottAdding @mbaynton to the credit list.
Comment #6
catchCommitted/pushed to 8.0.x, thanks!