Constructor
new MaterialNameNormalizer()
Methods
(static) normalize(name) → {string}
Normalizes a material name by: trimming, unquoting, collapsing spaces and fixing separators.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | Raw material name input. |
Throws:
-
When name is not a string.
- Type
- TypeError
Returns:
- Normalized material name.
- Type
- string