mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
make case sensitive
This commit is contained in:
parent
8467da3894
commit
0119c91001
@ -132,9 +132,9 @@ export default class GCode {
|
||||
|
||||
addGCode(gcode, { temperature, bedTemperature, heatedBed }) {
|
||||
gcode = gcode
|
||||
.replace(/{temperature}/gi, temperature)
|
||||
.replace(/{temperature}/g, temperature)
|
||||
.replace(/{if heatedBed}.*?\n/g, str => heatedBed ? str.replace(/{if heatedBed}/g, '') : '')
|
||||
.replace(/{bedTemperature}/gi, bedTemperature);
|
||||
.replace(/{bedTemperature}/g, bedTemperature);
|
||||
|
||||
this._addGCode(gcode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user