FIX: nbsp handling in group-timezones (#739)
Since it was converted to Glimmer, the nbsp html entity is being escaped by ember before rendering. We can use a unicode literal instead.
Followup to d471bbdf9a
This commit is contained in:
parent
8e4396c38b
commit
4d0af68ec8
|
|
@ -11,6 +11,8 @@ import NewDay from "./new-day";
|
|||
import TimeTraveller from "./time-traveller";
|
||||
import Timezone from "./timezone";
|
||||
|
||||
const nbsp = "\xa0";
|
||||
|
||||
export default class GroupTimezones extends Component {
|
||||
@service siteSettings;
|
||||
|
||||
|
|
@ -132,7 +134,7 @@ export default class GroupTimezones extends Component {
|
|||
return `${sign}${hours.replace(/^0(\d)/, "$1")}${minutes.replace(
|
||||
/:00$/,
|
||||
""
|
||||
)}`.replace(/-0/, " ");
|
||||
)}`.replace(/-0/, nbsp);
|
||||
}
|
||||
|
||||
#workingDays() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue