[Groonga-commit] groonga/gcs [master] Update normalized version of the generated id

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 2日 (木) 12:33:02 JST


SHIMODA Hiroshi	2012-08-02 12:33:02 +0900 (Thu, 02 Aug 2012)

  New Revision: e722a27761bbb9c976b1943b4d6a866b74cfe592
  https://github.com/groonga/gcs/commit/e722a27761bbb9c976b1943b4d6a866b74cfe592

  Log:
    Update normalized version of the generated id

  Modified files:
    test/database-domain.test.js

  Modified: test/database-domain.test.js (+1 -1)
===================================================================
--- test/database-domain.test.js    2012-08-02 12:29:01 +0900 (c9c5043)
+++ test/database-domain.test.js    2012-08-02 12:33:02 +0900 (fcc732d)
@@ -223,7 +223,7 @@ suite('database', function() {
         domain = new Domain('unknown', context);
         assert.equal(typeof domain.id, 'string');
         assert.deepEqual({ length:     domain.id.length,
-                           normalized: domain.id.replace(/[0-9][a-z]/g, '0') },
+                           normalized: domain.id.replace(/[1-9a-z]/g, '0') },
                          { length:     26,
                            normalized: Domain.DEFAULT_ID });
       });
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index