Using \s when searching for attribute boundaries as \b is way too broad.
Changed String#substr to String#slice which is a part of a standard.
Changelog entry.
Merge branch 't/10298'