'use babel';

import { _ } from 'lodash';

class JavaUtil {

  getSimpleName(className) {
    return className.replace(/[a-z]*\./g, '');
  }

  getPackageName(className) {
    return className.replace('.' + this.getSimpleName(className), '');
  }

  getInverseName(className) {
    return _.reduceRight(className.split('.'), (result, next) => {
      return result + next;
    }, '');
  }

}

export default new JavaUtil();

@@ -117,16 +117,19 @@
 ce(/%5Ba-z
+0-9
 %5D*%5C./g, 

Fix for issue #40