forked from MapComplete/MapComplete
Fix: when prefixing a tagRendering, correctly handle
This commit is contained in:
parent
b03489d93f
commit
14691cac45
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ export default class AddPrefixToTagRenderingConfig extends DesugaringStep<Questi
|
|||
|
||||
return <QuestionableTagRenderingConfigJson>{
|
||||
...json,
|
||||
id: this._prefix + "_" + json.id,
|
||||
id: this._prefix.replace(/[^a-zA-Z0-9_]/, "_") + "_" + json.id,
|
||||
|
||||
question: this.updateTranslatable(json.question),
|
||||
questionHint: this.updateTranslatable(json.questionHint),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue