]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- fixed sub regexps
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 1 Apr 2004 19:44:51 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pldnotify.awk -> 1.41

pldnotify.awk

index c0da0a1521dbaf31471cb26588a69bc4cb8ea1f6..706ff3b0c24d25eeab34d7e5a41b64eaf53004d4 100644 (file)
@@ -160,7 +160,7 @@ function get_links(url,     errno,link,oneline,retval,odp,tmpfile) {
                                match(tolower(odp),/<frame[ \t][^>]*>/)
                                ramka=substr(odp,RSTART,RLENGTH)
                                odp=substr(odp,RSTART+RLENGTH)
-                               sub(/[sS][rR][cC]=[ \t]+/,"src=",ramka);
+                               sub(/[sS][rR][cC]=[ \t]*/,"src=",ramka);
                                match(tolower(ramka),/src="[^"]+"/)
                                newurl=substr(ramka,RSTART+5,RLENGTH-6)
                                if (DEBUG) print "Ramka: " newurl
@@ -170,14 +170,14 @@ function get_links(url,   errno,link,oneline,retval,odp,tmpfile) {
                                }
                                retval=(retval " " get_links(newurl))
                        } else if (tolower(odp) ~ /href=[ \t]*"[^"]+"/) {
-                               sub(/[hH][rR][eE][fF]=[ \t]+/,"href=",odp)
+                               sub(/[hH][rR][eE][fF]=[ \t]*/,"href=",odp)
                                match(tolower(odp),/href="[^"]+"/)
                                link=substr(odp,RSTART,RLENGTH)
                                odp=substr(odp,RSTART+RLENGTH)
                                link=substr(link,7,length(link)-7)
                                retval=(retval " " link)
                        } else if (tolower(odp) ~ /href=[ \t]*[^ \t>]+/) {
-                               sub(/[hH][rR][eE][fF]=[ \t]+/,"href=",odp)
+                               sub(/[hH][rR][eE][fF]=[ \t]*/,"href=",odp)
                                match(tolower(odp),/href=[^ \t>]+/)
                                link=substr(odp,RSTART,RLENGTH)
                                odp=substr(odp,RSTART+RLENGTH)
This page took 0.14343 seconds and 4 git commands to generate.