[yast-devel] Re: [yast-commit] r64419 - in /trunk/yast2: ./ library/network/src/ library/network/testsuite/tests/ package/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dne 16.6.2011 14:58, locilka@svn2.opensuse.org napsal(a):
Author: locilka Date: Thu Jun 16 14:58:44 2011 New Revision: 64419
Modified: trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp?rev=64419&r1=64418&r2=64419&view=diff ============================================================================== --- trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp (original) +++ trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp Thu Jun 16 14:58:44 2011 @@ -83,7 +83,7 @@ // A.B.C.D/1 - A.B.C.D/32 (IP with a numeric netmask) else if (regexpmatch(network, "^" + type_ip4 + "/[01234567890]+$")) { string part_ip = regexpsub (network, "^(" + type_ip4 + ")/[01234567890]+$", "\\1"); - string part_bits = regexpsub (network, "^" + type_ip4 + "(/[01234567890])+$", "\\1"); + string part_bits = regexpsub (network, "^" + type_ip4 + "/([01234567890])+$", "\\1");
Ouch :) regexpsub (network, "^" + type_ip4 + "/([01234567890])+$", "\\1") should be regexpsub (network, "^" + type_ip4 + "/([01234567890]+)$", "\\1"); although it passes the tests - -- Lukas Ocilka, Appliances Department, SUSE LINUX s.r.o. MD: Jeff Hawn, Jennifer Guild, Alena Hendrichova -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iD8DBQFN+f8PVSqMdRCqTiwRAibZAJoDu33xLMb93n/Zw2cqOqrOhrS64wCfXZu8 nttdeTSNJzM+FfIVYfFMU3E= =iuE+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Lukas Ocilka