[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm lonhtmlcommon.pm
raeburn
raeburn at source.lon-capa.org
Mon Oct 21 10:16:11 EDT 2024
raeburn Mon Oct 21 14:16:11 2024 EDT
Modified files:
/loncom/interface loncreatecourse.pm lonhtmlcommon.pm
Log:
- Bug 6772
Support replacement of unicode 2212 character ("Math" minus) with ascii
minus when pasted into numericalresponse textbox for pre-ECMA2018 browsers
(Chrome <64, Firefox <78, Opera <51).
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.158.2.3.2.1 loncom/interface/loncreatecourse.pm:1.158.2.3.2.2
--- loncom/interface/loncreatecourse.pm:1.158.2.3.2.1 Thu Nov 16 16:22:58 2017
+++ loncom/interface/loncreatecourse.pm Fri Nov 17 01:02:28 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.158.2.3.2.1 2017/11/16 16:22:58 raeburn Exp $
+# $Id: loncreatecourse.pm,v 1.158.2.3.2.2 2017/11/17 01:02:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -82,7 +82,7 @@
use Apache::lonuserutils;
use Apache::lonclonecourse;
use LONCAPA::batchcreatecourse;
-use LONCAPA;
+use LONCAPA qw(:DEFAULT :match);
# ===================================================== Phase one: fill-in form
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.414 loncom/interface/lonhtmlcommon.pm:1.415
--- loncom/interface/lonhtmlcommon.pm:1.414 Tue Sep 17 13:06:49 2024
+++ loncom/interface/lonhtmlcommon.pm Mon Oct 21 14:16:11 2024
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.414 2024/09/17 13:06:49 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.415 2024/10/21 14:16:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1861,7 +1861,7 @@
{
regex = new RegExp ("\\p{Dash}", "gu");
}
- catch (e) { regex = new RegExp ("[\\u058A\\u05BE\\u1400\\u1806\\u2010-\\u2015\\u2E3A\\u2E3B\\u2E5D\\u301C\\uFE58\\uFE63\\uFF0D]","g"); }
+ catch (e) { regex = new RegExp ("[\\u058A\\u05BE\\u1400\\u1806\\u2010-\\u2015\\u2212\\u2E3A\\u2E3B\\u2E5D\\u301C\\uFE58\\uFE63\\uFF0D]","g"); }
p = p.replace(regex,'-');
putInText(p);
});
More information about the LON-CAPA-cvs
mailing list