[LON-CAPA-cvs] cvs: rat / lonpage.pm
raeburn
raeburn at source.lon-capa.org
Mon Sep 11 09:26:26 EDT 2023
raeburn Mon Sep 11 13:26:26 2023 EDT
Modified files:
/rat lonpage.pm
Log:
- regexp readability
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.143 rat/lonpage.pm:1.144
--- rat/lonpage.pm:1.143 Sun Sep 10 18:12:55 2023
+++ rat/lonpage.pm Mon Sep 11 13:26:26 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.143 2023/09/10 18:12:55 raeburn Exp $
+# $Id: lonpage.pm,v 1.144 2023/09/11 13:26:26 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -514,7 +514,7 @@
$hastimer = 1;
}
unless ($hasnumresp) {
- if ($output=~/\<input[^\>]+class\s*=\s*[\'\"]*([^\'\"\>]+|)LC_numresponse_text/) {
+ if ($output=~/\<input[^\>]+class\s*=\s*['"]*[^'">]*LC_numresponse_text\W/) {
$hasnumresp = 1;
}
}
More information about the LON-CAPA-cvs
mailing list