[Groonga-commit] groonga/gcs [master] Escape the hyphen in regexp

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2012年 6月 21日 (木) 10:39:41 JST


Yoji SHIDARA	2012-06-21 10:39:41 +0900 (Thu, 21 Jun 2012)

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

  Log:
    Escape the hyphen in regexp

  Modified files:
    lib/domain.js

  Modified: lib/domain.js (+1 -1)
===================================================================
--- lib/domain.js    2012-06-21 10:38:24 +0900 (8c60262)
+++ lib/domain.js    2012-06-21 10:39:41 +0900 (0605b56)
@@ -2,7 +2,7 @@ var http = require('http');
 
 exports.MINIMUM_DOMAIN_NAME_LENGTH = 3;
 exports.MAXIMUM_DOMAIN_NAME_LENGTH = 28;
-exports.INVALID_DOMAIN_NAME_CHARACTER_PATTERN = /[^-a-z0-9]/g;
+exports.INVALID_DOMAIN_NAME_CHARACTER_PATTERN = /[^\-a-z0-9]/g;
 exports.INVALID_TABLE_NAME_CHARACTER_PATTERN = /[^_a-z0-9]/g;
 
 function assertValidDomainName(domain) {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index