@jdeighan/coffee-utils 7.0.39 → 7.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/coffee_utils.coffee +12 -0
- package/src/coffee_utils.js +8 -0
package/package.json
CHANGED
package/src/coffee_utils.coffee
CHANGED
@@ -7,6 +7,18 @@ LOG = (lArgs...) -> console.log lArgs... # synonym for console.log()
|
|
7
7
|
|
8
8
|
export doHaltOnError = false
|
9
9
|
|
10
|
+
# ---------------------------------------------------------------------------
|
11
|
+
# TEMP!!!!!
|
12
|
+
|
13
|
+
export isComment = (line) ->
|
14
|
+
|
15
|
+
lMatches = line.match(///^
|
16
|
+
\s*
|
17
|
+
\#
|
18
|
+
(\s|$)
|
19
|
+
///)
|
20
|
+
return defined(lMatches)
|
21
|
+
|
10
22
|
# ---------------------------------------------------------------------------
|
11
23
|
|
12
24
|
export haltOnError = () ->
|
package/src/coffee_utils.js
CHANGED
@@ -15,6 +15,14 @@ LOG = function(...lArgs) {
|
|
15
15
|
|
16
16
|
export var doHaltOnError = false;
|
17
17
|
|
18
|
+
// ---------------------------------------------------------------------------
|
19
|
+
// TEMP!!!!!
|
20
|
+
export var isComment = function(line) {
|
21
|
+
var lMatches;
|
22
|
+
lMatches = line.match(/^\s*\#(\s|$)/);
|
23
|
+
return defined(lMatches);
|
24
|
+
};
|
25
|
+
|
18
26
|
// ---------------------------------------------------------------------------
|
19
27
|
export var haltOnError = function() {
|
20
28
|
return doHaltOnError = true;
|