aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/bundle.js')
-rw-r--r--public/javascripts/bundle.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/javascripts/bundle.js b/public/javascripts/bundle.js
index 0b22d45..f0b523a 100644
--- a/public/javascripts/bundle.js
+++ b/public/javascripts/bundle.js
@@ -96749,7 +96749,11 @@ module.exports = function () {
const scriptText = $script.text()
const regexs = [/var classes = \[(.+)\];/, /var teachers = \[(.+)\];/, /var rooms = \[(.+)\];/, /var students = \[(.+)\];/]
- const items = regexs.map(regex => scriptText.match(regex)[1].split(',').map(item => item.replace(/"/g, '')))
+ const items = regexs.map(function (regex) {
+ return scriptText.match(regex)[1].split(',').map(function (item) {
+ return item.replace(/"/g, '')
+ })
+ })
resolve([]
.concat(items[0].map(function (item, index) {
@@ -96825,7 +96829,7 @@ getUsers().then(function (users) {
results = fuzzy.filter(inputNode.value, users, {
pre: '<strong>',
post: '</strong>',
- extract: el => el.value
+ extract: function (el) { return el.value }
}).slice(0, 7)
matches = results.map(function (el) { return el.string })