Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 52... Zeile 52...
52
     */
52
     */
53
    protected static function extractValuesForWildcards($masterData, $data, $attribute)
53
    protected static function extractValuesForWildcards($masterData, $data, $attribute)
54
    {
54
    {
55
        $keys = [];
55
        $keys = [];
Zeile 56... Zeile 56...
56
 
56
 
Zeile 57... Zeile 57...
57
        $pattern = str_replace('\*', '[^\.]+', preg_quote($attribute));
57
        $pattern = str_replace('\*', '[^\.]+', preg_quote($attribute, '/'));
58
 
58
 
59
        foreach ($data as $key => $value) {
59
        foreach ($data as $key => $value) {
60
            if ((bool) preg_match('/^'.$pattern.'/', $key, $matches)) {
60
            if ((bool) preg_match('/^'.$pattern.'/', $key, $matches)) {