mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	Merge branch 'stable'
# Conflicts: # package-lock.json
This commit is contained in:
		
						commit
						b29155775e
					
				| @ -77,7 +77,7 @@ async function stopWatch(what, func) { | ||||
| } | ||||
| 
 | ||||
| function formatValueWithWhitespace(val) { | ||||
|     return /[^\w_-]/.test(val) ? '"' + val + '"' : val; | ||||
|     return /[^\p{L}_-]/u.test(val) ? '"' + val + '"' : val; | ||||
| } | ||||
| 
 | ||||
| function formatLabel(label) { | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| const dayjs = require("dayjs"); | ||||
| 
 | ||||
| const filterRegex = /(\b(AND|OR)\s+)?@(!?)([\w_]+|"[^"]+")\s*((=|!=|<|<=|>|>=|!?\*=|!?=\*|!?\*=\*)\s*([\w_/-]+|"[^"]+"))?/ig; | ||||
| const filterRegex = /(\b(AND|OR)\s+)?@(!?)([\p{L}_]+|"[^"]+")\s*((=|!=|<|<=|>|>=|!?\*=|!?=\*|!?\*=\*)\s*([\p{L}_/-]+|"[^"]+"))?/igu; | ||||
| const smartValueRegex = /^(NOW|TODAY|WEEK|MONTH|YEAR) *([+\-] *\d+)?$/i; | ||||
| 
 | ||||
| function calculateSmartValue(v) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam