Skip to content

Commit

Permalink
Correctly restrict Roblox attributes to be RBX rather than RBX_
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Loeffler <[email protected]>
  • Loading branch information
Dekkonot and kennethloeffler authored Aug 29, 2024
1 parent b0fe238 commit a2b5fdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/snapshot_middleware/json_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn json_model_from_pair<'sync>(
for (attr_name, attr_value) in attrs.iter() {
// We (probably) don't want to preserve internal attributes,
// only user defined ones.
if attr_name.starts_with("RBX_") {
if attr_name.starts_with("RBX") {
continue;
}
attributes.insert(
Expand Down
4 changes: 2 additions & 2 deletions src/snapshot_middleware/meta_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl AdjacentMetadata {
for (attr_name, attr_value) in attrs.iter() {
// We (probably) don't want to preserve internal
// attributes, only user defined ones.
if attr_name.starts_with("RBX_") {
if attr_name.starts_with("RBX") {
continue;
}
attributes.insert(
Expand Down Expand Up @@ -273,7 +273,7 @@ impl DirectoryMetadata {
for (name, value) in attrs.iter() {
// We (probably) don't want to preserve internal
// attributes, only user defined ones.
if name.starts_with("RBX_") {
if name.starts_with("RBX") {
continue;
}
attributes.insert(
Expand Down
2 changes: 1 addition & 1 deletion src/snapshot_middleware/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ fn project_node_property_syncback<'inst>(
for (attr_name, attr_value) in attrs.iter() {
// We (probably) don't want to preserve internal attributes,
// only user defined ones.
if attr_name.starts_with("RBX_") {
if attr_name.starts_with("RBX") {
continue;
}
attributes.insert(
Expand Down

0 comments on commit a2b5fdd

Please sign in to comment.