Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foresight
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libraries
foresight
Commits
47371880
Commit
47371880
authored
Aug 03, 2018
by
James Ooi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trim leading and trailing whitespace from event data
parent
6f54ea12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
foresight.js
dist/foresight.js
+1
-1
foresight.min.js
dist/foresight.min.js
+0
-0
foresight.ts
src/foresight.ts
+1
-1
No files found.
dist/foresight.js
View file @
47371880
...
...
@@ -237,7 +237,7 @@ var Foresight = /** @class */ (function () {
* @private
*/
Foresight
.
prototype
.
_parseEventString
=
function
(
eventString
)
{
var
split
=
eventString
.
split
(
';'
);
var
split
=
eventString
.
split
(
';'
)
.
map
(
function
(
s
)
{
return
s
.
trim
();
})
;
var
category
=
split
[
0
],
action
=
split
[
1
],
label
=
split
[
2
];
// If only one argument is provided, then the argument is the action
if
(
split
.
length
===
1
)
{
...
...
dist/foresight.min.js
View file @
47371880
This diff is collapsed.
Click to expand it.
src/foresight.ts
View file @
47371880
...
...
@@ -201,7 +201,7 @@ class Foresight {
* @private
*/
private
_parseEventString
(
eventString
:
string
):
Partial
<
EventData
>
{
const
split
=
eventString
.
split
(
';'
);
const
split
=
eventString
.
split
(
';'
)
.
map
(
s
=>
s
.
trim
())
;
let
[
category
,
action
,
label
]
=
split
;
// If only one argument is provided, then the argument is the action
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment