testilo 24.2.0 → 24.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/procs/score/tic40.js +5 -0
- package/procs/util.js +3 -1
package/package.json
CHANGED
package/procs/score/tic40.js
CHANGED
|
@@ -8088,6 +8088,11 @@ exports.issues = {
|
|
|
8088
8088
|
quality: 1,
|
|
8089
8089
|
what: 'CSS font-weight property has a value smaller than 1'
|
|
8090
8090
|
},
|
|
8091
|
+
'^CSS: font-weight: .+ is not valid, only values lower than or equal to 1000.0 are allowed.*$': {
|
|
8092
|
+
variable: true,
|
|
8093
|
+
quality: 1,
|
|
8094
|
+
what: 'CSS font-weight property has a value greater than 1000'
|
|
8095
|
+
},
|
|
8091
8096
|
'^CSS: .+: Parse Error.*$': {
|
|
8092
8097
|
variable: true,
|
|
8093
8098
|
quality: 1,
|
package/procs/util.js
CHANGED
|
@@ -20,7 +20,9 @@ const getTimeString = date => date.toISOString().slice(0, 19);
|
|
|
20
20
|
// Returns a string representing the date and time.
|
|
21
21
|
exports.getNowString = () => getTimeString(new Date());
|
|
22
22
|
// Returns a time stamp representing a date and time.
|
|
23
|
-
const getTimeStamp
|
|
23
|
+
const getTimeStamp
|
|
24
|
+
= exports.getTimeStamp
|
|
25
|
+
= date => getTimeString(date).replace(/[-:]/g, '').slice(2, 13);
|
|
24
26
|
// Returns a time stamp representing the date and time.
|
|
25
27
|
exports.getNowStamp = () => getTimeStamp(new Date());
|
|
26
28
|
// Inserts a character periodically in a string.
|