mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Allow for spaces in HTML link and version filters (#1537)
This commit is contained in:
		| @@ -244,13 +244,14 @@ class HTML extends AppSource { | ||||
|         true) { | ||||
|       var reg = RegExp(additionalSettings['customLinkFilterRegex']); | ||||
|       links = allLinks | ||||
|           .where((element) => | ||||
|               reg.hasMatch(filterLinkByText ? element.value : element.key)) | ||||
|           .where((element) => reg.hasMatch( | ||||
|               filterLinkByText ? element.value : Uri.decodeFull(element.key))) | ||||
|           .toList(); | ||||
|     } else { | ||||
|       links = allLinks | ||||
|           .where((element) => | ||||
|               Uri.parse(filterLinkByText ? element.value : element.key) | ||||
|           .where((element) => Uri.parse(filterLinkByText | ||||
|                   ? element.value | ||||
|                   : Uri.decodeFull(element.key)) | ||||
|               .path | ||||
|               .toLowerCase() | ||||
|               .endsWith('.apk')) | ||||
| @@ -315,7 +316,7 @@ class HTML extends AppSource { | ||||
|         additionalSettings['matchGroupToUse'] as String?, | ||||
|         additionalSettings['versionExtractWholePage'] == true | ||||
|             ? versionExtractionWholePageString | ||||
|             : rel); | ||||
|             : Uri.decodeFull(rel)); | ||||
|     version ??= | ||||
|         additionalSettings['defaultPseudoVersioningMethod'] == 'APKLinkHash' | ||||
|             ? rel.hashCode.toString() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user