🐛 fix string
This commit is contained in:
		
							parent
							
								
									0340757d78
								
							
						
					
					
						commit
						57f44442ff
					
				| @ -1,6 +1,6 @@ | ||||
| { | ||||
| 	"name": "@fosscord/server-util", | ||||
| 	"version": "1.0.6", | ||||
| 	"version": "1.0.7", | ||||
| 	"description": "Utility functions for the all server repositories", | ||||
| 	"main": "dist/index.js", | ||||
| 	"types": "dist/index.d.ts", | ||||
|  | ||||
| @ -1,6 +1,7 @@ | ||||
| import { DOUBLE_WHITE_SPACE, SPECIAL_CHAR } from "./Regex"; | ||||
| 
 | ||||
| export function trimSpecial(str?: string) { | ||||
| export function trimSpecial(str?: string): string { | ||||
| 	// @ts-ignore
 | ||||
| 	if (!str) return; | ||||
| 	return str.replace(SPECIAL_CHAR, "").replace(DOUBLE_WHITE_SPACE, " ").trim(); | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy