| 
									
										
										
										
											2020-10-04 04:10:08 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							| 
									
										
										
										
											2020-10-06 01:32:33 +03:00
										 |  |  | **********************************************/  /* c8 ignore next 2 */ | 
					
						
							| 
									
										
										
										
											2020-10-04 04:10:08 +03:00
										 |  |  | ((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define) | 
					
						
							|  |  |  | (function(require){ var module={} // make module AMD/node compatible...
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-22 23:50:05 +03:00
										 |  |  | var object = require('ig-object') | 
					
						
							| 
									
										
										
										
											2020-10-04 04:10:08 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-22 23:50:05 +03:00
										 |  |  | var RegExpMixin = | 
					
						
							|  |  |  | module.RegExpMixin = | 
					
						
							|  |  |  | object.Mixin('RegExpMixin', 'soft', { | 
					
						
							|  |  |  | 	// Quote a string and convert to RegExp to match self literally.
 | 
					
						
							|  |  |  | 	quoteRegExp: function(str){ | 
					
						
							|  |  |  | 		return str | 
					
						
							|  |  |  | 			.replace(/([\.\\\/\(\)\[\]\$\*\+\-\{\}\@\^\&\?\<\>])/g, '\\$1') } | 
					
						
							| 
									
										
										
										
											2022-04-14 00:37:49 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	// XXX add introspection interface...
 | 
					
						
							|  |  |  | 	// 		- number of groups
 | 
					
						
							|  |  |  | 	// 		- group info
 | 
					
						
							|  |  |  | 	// 		- ...
 | 
					
						
							| 
									
										
										
										
											2020-11-22 23:50:05 +03:00
										 |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | RegExpMixin(RegExp) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-04 04:40:16 +03:00
										 |  |  | var quoteRegExp = | 
					
						
							| 
									
										
										
										
											2020-11-22 23:50:05 +03:00
										 |  |  | RegExp.quoteRegExp =  | 
					
						
							|  |  |  | 	RegExp.quoteRegExp | 
					
						
							| 
									
										
										
										
											2020-10-04 04:10:08 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************************** | 
					
						
							|  |  |  | * vim:set ts=4 sw=4 :                               */ return module }) |