added global flag to regexp

finally fixes #12...
This commit is contained in:
Kevin Ramharak 2018-01-01 16:53:29 +01:00 committed by GitHub
parent 353c8161ae
commit 7435b6178d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ function updateGameObject(object, responseObj) {
} else if (responseObj.holoMode === 2) {
//String
object.hologram = game.make.text(0, 32, responseObj.holoStr.replace(/[\n|\t]/, ''), {
object.hologram = game.make.text(0, 32, responseObj.holoStr.replace(/[\n|\t]/g, ''), {
fontSize: 27,
fill: color ? color : colorScheme.hologramFill,
stroke: colorScheme.hologramStroke,