Merge pull request #5647 from jaiwanth-v/fix-immediate-newline-slashcommand
Modified regex to account for an immediate new line after slash commandspull/21833/head
						commit
						55d042596d
					
				|  | @ -1182,7 +1182,7 @@ export function parseCommandString(input: string) { | |||
|     input = input.replace(/\s+$/, ''); | ||||
|     if (input[0] !== '/') return {}; // not a command
 | ||||
| 
 | ||||
|     const bits = input.match(/^(\S+?)(?: +((.|\n)*))?$/); | ||||
|     const bits = input.match(/^(\S+?)(?:[ \n]+((.|\n)*))?$/); | ||||
|     let cmd; | ||||
|     let args; | ||||
|     if (bits) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 J. Ryan Stinnett
						J. Ryan Stinnett