We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb45e9 commit ed3965aCopy full SHA for ed3965a
src/Location.php
@@ -81,7 +81,7 @@ public function getAttribute($key)
81
*/
82
public function getDisplayNameAttribute()
83
{
84
- return "{$this->city}, {$this->state}";
+ return preg_replace('/^,\s/', '', "{$this->city}, {$this->state}");
85
}
86
87
/**
0 commit comments