Skip to content

Commit

Permalink
Merge branch 'develop' into feature/layerserver
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Feb 20, 2024
2 parents c08191d + e6ec24d commit f5e1cde
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 117 deletions.
13 changes: 13 additions & 0 deletions assets/layers/ghost_bike/ghost_bike.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,19 @@
"type": "date"
},
"id": "ghost_bike-start_date"
},
{
"id": "wikidata",
"render": {
"special": {
"type": "wikipedia",
"keyToShowWikipediaFor": "subject:wikidata"
},
"before": {
"en": "<h3>Wikipedia page about the deceased person</h3>"
}
},
"condition": "subject:wikidata~*"
}
],
"deletion": {
Expand Down
2 changes: 2 additions & 0 deletions assets/layers/toilet_at_amenity/toilet_at_amenity.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@
"toilet.toilet-changing_table:location",
"toilet.toilet-handwashing",
"toilet.toilet-has-paper",
"toilet.menstrual_products",
"toilet.menstrual_products_location",
{
"builtin": "description",
"override": {
Expand Down
2 changes: 2 additions & 0 deletions src/UI/InputElement/Validators/FediverseValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default class FediverseValidator extends Validator {
* @param s
*/
reformat(s: string): string {
s = s.trim()
if (!s.startsWith("@")) {
s = "@" + s
}
Expand All @@ -35,6 +36,7 @@ export default class FediverseValidator extends Validator {
return undefined
}
getFeedback(s: string): Translation | undefined {
s = s.trim()
const match = s.match(FediverseValidator.usernameAtServer)
console.log("Match:", match)
if (match) {
Expand Down
Loading

0 comments on commit f5e1cde

Please sign in to comment.