mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	js: Fix no-useless-escape errors.
Generated manually, since ESLint doesn’t have a fixer for this. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							ac64d03988
						
					
				
				
					commit
					569b38fe34
				
			@@ -148,8 +148,7 @@ exports.strcmp = exports.make_strcmp();
 | 
			
		||||
 | 
			
		||||
exports.escape_regexp = function (string) {
 | 
			
		||||
    // code from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
 | 
			
		||||
    // Modified to escape the ^ to appease jslint. :/
 | 
			
		||||
    return string.replace(/([.*+?\^=!:${}()|\[\]\/\\])/g, "\\$1");
 | 
			
		||||
    return string.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.array_compare = function util_array_compare(a, b) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user