File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,16 +301,16 @@ public static function capitalSplit(string $key) : string
301
301
302
302
public function cleanField (string $ fieldName ) : string
303
303
{
304
- // Remove invalid characters (replace with space) but allow . for fully specified fields
305
- $ sanitized = \preg_replace ('/[^a-zA-Z0-9_$.]/ ' , '' , $ fieldName );
304
+ // Remove invalid characters (replace with space) but allow * and . for fully specified fields
305
+ $ sanitized = \preg_replace ('/[^a-zA-Z0-9_$.* ]/ ' , '' , $ fieldName );
306
306
307
307
// Remove leading/trailing underscores
308
308
$ sanitized = \trim ($ sanitized , '_ ' );
309
309
310
- // If the string is empty after sanitization, use field
310
+ // If the string is empty after sanitization, use *
311
311
if (! \strlen ($ sanitized ))
312
312
{
313
- $ sanitized = 'field ' ;
313
+ $ sanitized = '* ' ;
314
314
}
315
315
316
316
return $ sanitized ;
You can’t perform that action at this time.
0 commit comments