forked from MapComplete/MapComplete
		
	Add alias for !=
This commit is contained in:
		
							parent
							
								
									91b21647a3
								
							
						
					
					
						commit
						2c82bafd24
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -67,6 +67,17 @@ export class FromJSON { | |||
|                     true | ||||
|                 ); | ||||
|             } | ||||
|             if (tag.indexOf("!~") >= 0) { | ||||
|                 const split = Utils.SplitFirst(tag, "!~"); | ||||
|                 if (split[1] === "*") { | ||||
|                     split[1] = "..*" | ||||
|                 } | ||||
|                 return new RegexTag( | ||||
|                     split[0], | ||||
|                     new RegExp("^" + split[1] + "$"), | ||||
|                     true | ||||
|                 ); | ||||
|             } | ||||
|             if (tag.indexOf("~") >= 0) { | ||||
|                 const split = Utils.SplitFirst(tag, "~"); | ||||
|                 if (split[1] === "*") { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue