Menu

#1 improve FASHelper.setUniqueName

1.0
closed
nobody
2012-03-01
2012-01-05
nb lx
No

Current Behavior

In case of conflicting names within a namespace, the method appends '1' to the given name until it is unique.

  • element
  • element1
  • element11
  • element111

Desired Behavior

The method should append '1' as suffix only if there's no number suffix present. If the number suffix is already present, the number should be incremented.

  • element
  • element1
  • element2
  • element3

Discussion


Log in to post a comment.

MongoDB Logo MongoDB