Skip to content

Commit

Permalink
fix(DOMA-10698): fixed some cases of unitName parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoviazin committed Nov 25, 2024
1 parent c641aa9 commit e2552d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AddressFromStringParser {
if (!detectedType && checkUnitTypeRegex.test(unitInput)) {
detectedType = unitType
}
unitInput = this.trim(unitInput.replace(clearUnitTypeRegex, ' ').replace(/\s+/g, ' '))
unitInput = this.trim(unitInput.replace(clearUnitTypeRegex, '').replace(/\s+/g, ' '))
}
return {
unitName: unitInput,
Expand Down

0 comments on commit e2552d1

Please sign in to comment.