| author | ymh <ymh.work@gmail.com> |
| Mon, 21 Jul 2014 14:48:01 +0200 | |
| changeset 316 | 242510015401 |
| parent 309 | server/renkan-web/src/main/webapp/static/lib/dojo/regexp.js@0c3e6e66881f |
| permissions | -rw-r--r-- |
| 51 | 1 |
/* |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
51
diff
changeset
|
2 |
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. |
| 51 | 3 |
Available via Academic Free License >= 2.1 OR the modified BSD license. |
4 |
see: http://dojotoolkit.org/license for details |
|
5 |
*/ |
|
6 |
||
7 |
//>>built |
|
8 |
define("dojo/regexp",["./_base/kernel","./_base/lang"],function(_1,_2){ |
|
9 |
var _3={}; |
|
10 |
_2.setObject("dojo.regexp",_3); |
|
11 |
_3.escapeString=function(_4,_5){ |
|
12 |
return _4.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){ |
|
13 |
if(_5&&_5.indexOf(ch)!=-1){ |
|
14 |
return ch; |
|
15 |
} |
|
16 |
return "\\"+ch; |
|
17 |
}); |
|
18 |
}; |
|
19 |
_3.buildGroupRE=function(_6,re,_7){ |
|
20 |
if(!(_6 instanceof Array)){ |
|
21 |
return re(_6); |
|
22 |
} |
|
23 |
var b=[]; |
|
24 |
for(var i=0;i<_6.length;i++){ |
|
25 |
b.push(re(_6[i])); |
|
26 |
} |
|
27 |
return _3.group(b.join("|"),_7); |
|
28 |
}; |
|
29 |
_3.group=function(_8,_9){ |
|
30 |
return "("+(_9?"?:":"")+_8+")"; |
|
31 |
}; |
|
32 |
return _3; |
|
33 |
}); |