aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation/var
diff options
context:
space:
mode:
Diffstat (limited to 'src/manipulation/var')
-rw-r--r--src/manipulation/var/rscriptType.js6
-rw-r--r--src/manipulation/var/rtagName.js12
2 files changed, 5 insertions, 13 deletions
diff --git a/src/manipulation/var/rscriptType.js b/src/manipulation/var/rscriptType.js
index cd1430a7e..879651c7c 100644
--- a/src/manipulation/var/rscriptType.js
+++ b/src/manipulation/var/rscriptType.js
@@ -1,5 +1 @@
-define( function() {
- "use strict";
-
- return ( /^$|^module$|\/(?:java|ecma)script/i );
-} );
+export default ( /^$|^module$|\/(?:java|ecma)script/i );
diff --git a/src/manipulation/var/rtagName.js b/src/manipulation/var/rtagName.js
index 7435620c1..b35acc999 100644
--- a/src/manipulation/var/rtagName.js
+++ b/src/manipulation/var/rtagName.js
@@ -1,8 +1,4 @@
-define( function() {
- "use strict";
-
- // rtagName captures the name from the first start tag in a string of HTML
- // https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
- // https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
- return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
-} );
+// rtagName captures the name from the first start tag in a string of HTML
+// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
+// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
+export default ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );