Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
schedules-legacy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
schedules-legacy
Commits
34bce523
Commit
34bce523
authored
Dec 31, 2016
by
Mark Stenglein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linting and cleanup take 3
parent
3b4f0dff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
helpers/index.js
helpers/index.js
+3
-3
No files found.
helpers/index.js
View file @
34bce523
...
...
@@ -22,11 +22,11 @@
* TODO: Make this not suck (dynamic loading of other files maybe?)
*/
var
u
serException
=
function
(
message
)
{
var
U
serException
=
function
(
message
)
{
this
.
message
=
message
this
.
name
=
'
userException
'
}
module
.
exports
.
userException
=
u
serException
module
.
exports
.
UserException
=
U
serException
/**
* Strip all non alpha numeric characters from input.
...
...
@@ -51,7 +51,7 @@ module.exports.strClean = strClean
var
strSplitClean
=
function
(
rawString
,
separator
)
{
// Validate input for separator
if
(
separator
&&
separator
.
length
!==
1
)
{
throw
new
u
serException
(
'
separator must be a single char
'
)
throw
new
U
serException
(
'
separator must be a single char
'
)
}
if
(
!
separator
)
{
separator
=
'
,
'
...
...
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