| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 638b510 commit 8c71522
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1000,19 +1000,15 @@ _isImports_, _conditions_) | |||
| 1000 | 1000 | ||
| 1001 | 1001 | **PATTERN\_KEY\_COMPARE**(_keyA_, _keyB_) | |
| 1002 | 1002 | ||
| 1003 | - > 1. Assert: _keyA_ ends with _"/"_ or contains only a single _"\*"_. | ||
| 1004 | - > 2. Assert: _keyB_ ends with _"/"_ or contains only a single _"\*"_. | ||
| 1005 | - > 3. Let _baseLengthA_ be the index of _"\*"_ in _keyA_ plus one, if _keyA_ | ||
| 1006 | - > contains _"\*"_, or the length of _keyA_ otherwise. | ||
| 1007 | - > 4. Let _baseLengthB_ be the index of _"\*"_ in _keyB_ plus one, if _keyB_ | ||
| 1008 | - > contains _"\*"_, or the length of _keyB_ otherwise. | ||
| 1003 | + > 1. Assert: _keyA_ contains only a single _"\*"_. | ||
| 1004 | + > 2. Assert: _keyB_ contains only a single _"\*"_. | ||
| 1005 | + > 3. Let _baseLengthA_ be the index of _"\*"_ in _keyA_. | ||
| 1006 | + > 4. Let _baseLengthB_ be the index of _"\*"_ in _keyB_. | ||
| 1009 | 1007 | > 5. If _baseLengthA_ is greater than _baseLengthB_, return -1. | |
| 1010 | 1008 | > 6. If _baseLengthB_ is greater than _baseLengthA_, return 1. | |
| 1011 | - > 7. If _keyA_ does not contain _"\*"_, return 1. | ||
| 1012 | - > 8. If _keyB_ does not contain _"\*"_, return -1. | ||
| 1013 | - > 9. If the length of _keyA_ is greater than the length of _keyB_, return -1. | ||
| 1014 | - > 10. If the length of _keyB_ is greater than the length of _keyA_, return 1. | ||
| 1015 | - > 11. Return 0. | ||
| 1009 | + > 7. If the length of _keyA_ is greater than the length of _keyB_, return -1. | ||
| 1010 | + > 8. If the length of _keyB_ is greater than the length of _keyA_, return 1. | ||
| 1011 | + > 9. Return 0. | ||
| 1016 | 1012 | ||
| 1017 | 1013 | **PACKAGE\_TARGET\_RESOLVE**(_packageURL_, _target_, _patternMatch_, | |
| 1018 | 1014 | _isImports_, _conditions_) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments