From 6aad0ed3c73cca3d514192875e03c1a10920fa6a Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 12 Sep 2011 19:44:54 +0900 Subject: escapeRegex 追加 --- i_love_echo.js | 1 + 1 file changed, 1 insertion(+) (limited to 'i_love_echo.js') diff --git a/i_love_echo.js b/i_love_echo.js index 41de89b..a2f9ab1 100644 --- a/i_love_echo.js +++ b/i_love_echo.js @@ -203,6 +203,7 @@ createPrototype($s, { var s = [i < hash.length ? toHexString(hash.charCodeAt(i)) : "" for (i in hash)].join(""); return $(s); }, + get escpateRegex() $(util.escapeRegex(this.value)), s: function(from, to) $(this.value.replace(from, to)), split: function(reg) $(this.value.split(reg)), get toJSON(){ -- cgit v1.2.3