From 4ad5e5d94eb776862e3b901f67c69f252bdc7fab Mon Sep 17 00:00:00 2001 From: Serhiy Barhamon Date: Fri, 22 Sep 2023 21:59:44 +0200 Subject: [PATCH 1/2] fix typos in readme --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 63c0959..7923962 100644 --- a/readme.md +++ b/readme.md @@ -54,7 +54,7 @@ params = [ 'utm_term', # Identifies search terms 'utm_content', # Identifies what specifically was clicked to bring the user to the site ] -# Which exit params in url should be unvrapped +# Which exit params in URL should be unwrapped exit = [ [ "vk.com/away.php", @@ -70,7 +70,7 @@ exit = [ "next", ], [ - "(encrypted.|)google.(at|be|ca|ch|co.(bw|il|uk)|com(|.(ar|au|br|eg|tr|tw))|cl|de|dk|es|fr|nl|pl|se)/url", + "(www.|)(encrypted.|)google.(at|be|ca|ch|co.(bw|il|uk)|com(|.(ar|au|br|eg|tr|tw))|cl|de|dk|es|fr|nl|pl|se)/url", "url", ], [ @@ -116,10 +116,10 @@ Array of GET query params to apply chosen mode ### exit -Array of exit links to unwrap. Every element is also an array where first element is a url in a simplified regular -expression and all others are query params that can contain exit url. +Array of exit links to unwrap. Every element is also an array where first element is a URL in a simplified regular +expression and all others are query params that can contain exit URL. -For example this url: `https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjMuu2zrreBAxUt2gIHHaDVC_gQyCl6BAgqEAM&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ&usg=AOvVaw0aHtehaphMhOCAkCydRLZU&opi=89978449`, +For example this URL: `https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjMuu2zrreBAxUt2gIHHaDVC_gQyCl6BAgqEAM&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ&usg=AOvVaw0aHtehaphMhOCAkCydRLZU&opi=89978449`, Will be unwrapped to `https://www.youtube.com/watch?v=dQw4w9WgXcQ` From b05cf7e88ae008de0396a8406b6ddbce2fbf8015 Mon Sep 17 00:00:00 2001 From: Serhiy Barhamon Date: Fri, 22 Sep 2023 22:01:21 +0200 Subject: [PATCH 2/2] fix doc --- src/expand_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expand_string.rs b/src/expand_string.rs index 9b336c9..b6df5b0 100644 --- a/src/expand_string.rs +++ b/src/expand_string.rs @@ -1,4 +1,4 @@ -/// Expands url with groups. +/// Expands string with groups. /// /// Example: /// "(a.|)foo.(bar|baz.(qux|wux)|sar)(.b|.c)"