govuk_admin_template 4.1.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a58186fe3f664101a85f8615da3df5ba77be7e4
|
4
|
+
data.tar.gz: fc7a04c62e333c039c097dc0560086143879a1bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 975e5bba4b9eba5c3cb806f9c2d93ea7dbc1b53d7d82992b50b4fb8cd2633b90e1994550d0bc02cc70fbcf1684618d12c59b24a6fc54a0ae756eb50f8ab69ca2
|
7
|
+
data.tar.gz: b32c55707af79fc3a22c1914557a95b87bfb89fd4d89deb9f2e09bb024241ff3c46e1cb507b4676eb81e52a4f1f226ec5704c75e0e39cca8f6b052006ffc1798
|
data/CHANGELOG.md
CHANGED
@@ -95,12 +95,12 @@
|
|
95
95
|
hitType: 'event',
|
96
96
|
transport: 'beacon',
|
97
97
|
eventCategory: root.location.pathname,
|
98
|
-
eventAction: action
|
98
|
+
eventAction: redactEmails(action)
|
99
99
|
};
|
100
100
|
|
101
101
|
// Label is optional
|
102
102
|
if (typeof label === "string") {
|
103
|
-
eventAnalytics.eventLabel = label;
|
103
|
+
eventAnalytics.eventLabel = redactEmails(label);
|
104
104
|
}
|
105
105
|
|
106
106
|
// Value is optional, but when used must be an
|
@@ -116,6 +116,10 @@
|
|
116
116
|
if (typeof root.ga === "function") {
|
117
117
|
root.ga('send', eventAnalytics);
|
118
118
|
}
|
119
|
+
|
120
|
+
function redactEmails(string) {
|
121
|
+
return string.replace(/\S+@\S+/g, '[email]');
|
122
|
+
}
|
119
123
|
}
|
120
124
|
|
121
125
|
/*
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_admin_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|