少い文字でchar-hints-mod2

hintchars が 10文字より少ないと 絞り込みが終わってないのにactionが 動くようなので修正してみた。


diff -r 10b6072dfa10 char-hints-mod2.js
--- a/char-hints-mod2.js	Sun May 09 19:17:11 2010 +0900
+++ b/char-hints-mod2.js	Mon May 10 03:06:06 2010 +0900
@@ -90,6 +90,12 @@
         }
     })()
     ;
+    (function(){
+        const source = Hints.prototype._checkUnique.toSource();
+        if(source.indexOf("10")<0) return;
+        Hints.prototype._checkUnique = eval("(function() "+source.replace("10",<>hintchars.length</>)+")()");
+    })()
+    ;
 
     const DEFAULT_HINTCHARS = "HJKLASDFGYUIOPQWERTNMZXCVB";
     const hintContext = modules.hints;

修正内容

10進数 特有の ユニークチェックを hintchars.length 進数 に 変更


と なってるはずです。