mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 13:45:44 +01:00
removes spaces in at start and end of product name on creation
closes #3007
This commit is contained in:
parent
a1871fb0e9
commit
1eca9449a0
@ -419,7 +419,7 @@ export function MakeProduct(
|
||||
}
|
||||
|
||||
const product = new Product({
|
||||
name: productName.replace(/[<>]/g, ""), //Sanitize for HTMl elements
|
||||
name: productName.replace(/[<>]/g, "").trim(), //Sanitize for HTMl elements
|
||||
createCity: city,
|
||||
designCost: designInvest,
|
||||
advCost: marketingInvest,
|
||||
|
Loading…
Reference in New Issue
Block a user