Compare commits
	
		
			2 Commits
		
	
	
		
			c8f9832f48
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 9174c1b23a | ||
|  | 154c6a31b9 | 
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -51,7 +51,7 @@ uninstall: | ||||
| 	rm -f $(DESTDIR)$(CFGPREFIX)/systemd/system/$(EXE).service | ||||
|  | ||||
| test: | ||||
| 	$(GO) test -count=1 -v $(EXE)/extractor | ||||
| 	$(GO) test -count=1 -v git.nobrain.org/r4/dischord/extractor/ | ||||
|  | ||||
| .PHONY: all debug fmt install uninstall clean | ||||
|  | ||||
|   | ||||
| @@ -140,7 +140,7 @@ func getDecryptFunction(baseJs string) (string, error) { | ||||
| 	} | ||||
| 	fn := baseJs[start+len(startMatch):] | ||||
| 	end := strings.Index(fn, endMatch) | ||||
| 	if start == -1 { | ||||
| 	if end == -1 { | ||||
| 		return "", ErrDecryptGettingFunction | ||||
| 	} | ||||
| 	return fn[:end], nil | ||||
| @@ -170,7 +170,7 @@ func getDecryptOps(baseJs string) ([]decryptorOp, error) { | ||||
| 		} | ||||
| 		ops = baseJs[start+len(startMatch):] | ||||
| 		end := strings.Index(ops, endMatch) | ||||
| 		if start == -1 { | ||||
| 		if end == -1 { | ||||
| 			return nil, ErrDecryptGettingOpTable | ||||
| 		} | ||||
| 		ops = ops[:end] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user