From 3a0085d58ad152f45ebfbd2fd2966e71d3bb7d4f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 1 Jun 2023 00:15:43 +0200 Subject: [PATCH] Fix regexp when html as attributes --- lib/postgres/css_reference.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/postgres/css_reference.sh b/lib/postgres/css_reference.sh index 0cd7a91a..bbcd89b1 100755 --- a/lib/postgres/css_reference.sh +++ b/lib/postgres/css_reference.sh @@ -1,7 +1,7 @@ #!/bin/bash -l http_get https://www.w3schools.com/cssref/index.php | \ xmllint --html --xpath '/html/body//div[@id="cssproperties"]//table' - 2>/dev/null | \ -perl -pe 's|([^<]+)|https://www.w3schools.com/cssref/$1$2|' | \ +perl -pe 's|]*>([^<]+)|https://www.w3schools.com/cssref/$1$2|' | \ html2csv | \ sed -E "s,(\\\\),\1\1," | \ awk 'BEGIN{FS="\t"}{print $2"\t"$3"\t"$1}' \ -- 2.47.3