mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-14 00:54:48 +08:00
Fix strings
This commit is contained in:
@@ -23,7 +23,7 @@ export default class ToStringSerializer extends GeneralSerializer {
|
||||
*/
|
||||
write(entity, object, insideString) {
|
||||
return !insideString && object.constructor === String
|
||||
? `"${Utility.encodeString(object.toString())}"` // String will have quotes if not inside a string already
|
||||
: Utility.encodeString(object.toString())
|
||||
? `"${Utility.escapeString(object.toString())}"` // String will have quotes if not inside a string already
|
||||
: Utility.escapeString(object.toString())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user