fix url regex escaping
This commit is contained in:
		
							parent
							
								
									2cc3b1e706
								
							
						
					
					
						commit
						0af2466ea4
					
				| @ -9,7 +9,7 @@ | |||||||
| #define PORT            "(?:\\:[[:digit:]]{1,5})?" | #define PORT            "(?:\\:[[:digit:]]{1,5})?" | ||||||
| #define SCHEME          "(?:[[:alpha:]][+-.[:alnum:]]*:)" | #define SCHEME          "(?:[[:alpha:]][+-.[:alnum:]]*:)" | ||||||
| #define USERPASS        USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?" | #define USERPASS        USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?" | ||||||
| #define URLPATH         "(?:/[[:alnum:]$-_.+!*'(),;/?:@&=]*)" | #define URLPATH         "(?:/[[:alnum:]\\Q$-_.+!*'(),;/?:@&=\\E]*)" | ||||||
| 
 | 
 | ||||||
| const char * const url_regex = SCHEME "//(?:" USERPASS "\\@)?" HOST PORT URLPATH; | const char * const url_regex = SCHEME "//(?:" USERPASS "\\@)?" HOST PORT URLPATH; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Micay
						Daniel Micay