isomorphic-git 1.43.1 → 1.43.2
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/README.md +3 -0
- package/index.cjs +5 -4
- package/index.js +5 -4
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +3 -2
- package/managers/index.js +3 -2
- package/managers/index.umd.min.js +1 -1
- package/managers/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/managers/index.cjs
CHANGED
|
@@ -403,8 +403,9 @@ const SECTION_REGEX = /^[A-Za-z0-9-.]+$/;
|
|
|
403
403
|
// variable name is alphanumeric (ASCII) with -
|
|
404
404
|
// variable name starts with an alphabetic character
|
|
405
405
|
// variable name is case insensitive
|
|
406
|
-
|
|
407
|
-
const
|
|
406
|
+
// whitespace (spaces or tabs) around the equal sign is ignored
|
|
407
|
+
const VARIABLE_LINE_REGEX = /^([A-Za-z][A-Za-z0-9-]*)(?:\s*=\s*(.*))?$/;
|
|
408
|
+
const VARIABLE_NAME_REGEX = /^[A-Za-z][A-Za-z0-9-]*$/;
|
|
408
409
|
|
|
409
410
|
// Comments start with either # or ; and extend to the end of line
|
|
410
411
|
const VARIABLE_VALUE_COMMENT_REGEX = /^(.*?)( *[#;].*)$/;
|
package/managers/index.js
CHANGED
|
@@ -396,8 +396,9 @@ const SECTION_REGEX = /^[A-Za-z0-9-.]+$/;
|
|
|
396
396
|
// variable name is alphanumeric (ASCII) with -
|
|
397
397
|
// variable name starts with an alphabetic character
|
|
398
398
|
// variable name is case insensitive
|
|
399
|
-
|
|
400
|
-
const
|
|
399
|
+
// whitespace (spaces or tabs) around the equal sign is ignored
|
|
400
|
+
const VARIABLE_LINE_REGEX = /^([A-Za-z][A-Za-z0-9-]*)(?:\s*=\s*(.*))?$/;
|
|
401
|
+
const VARIABLE_NAME_REGEX = /^[A-Za-z][A-Za-z0-9-]*$/;
|
|
401
402
|
|
|
402
403
|
// Comments start with either # or ; and extend to the end of line
|
|
403
404
|
const VARIABLE_VALUE_COMMENT_REGEX = /^(.*?)( *[#;].*)$/;
|